This package contains functions for administering a local Neo4J server.
neo4J_start()
, neo4j_stop()
, neo4j_restart()
and neo4j_status()
perform a stop, start, restart or reports the current status of a local Neo4J instance. These functions take a single argument neo4j_path
which should be a path to the local neo4j
executable. Use path.expand()
where necessary.
library(neo4jshell)
<- path.expand("~/neo4j-community-4.0.4/bin/neo4j")
neo_path neo4j_status(neo_path)
All these functions output system messages.
neo4j_wipe()
completely removes a graph from the local Neo4J server. It takes two arguments:
database
is the name of the graph database file to be wiped.data_path
is the path to the data directory of the local Neo4J server. Use path.expand()
if necessary.<- "graph.db"
graphfile <- path.expand("~/neo4j-community-4.0.4/data")
my_data_path neo4j_wipe(graphfile, my_data_path)
This function will output a success or an error message.
Paths to executable files that are provided as arguments to functions may need to be provided with appropriate extensions (eg neo4j.bat
).