Skip to contents

Connect to a neo4j BED database


  url = NULL,
  username = NULL,
  password = NULL,
  connection = 1,
  remember = FALSE,
  useCache = NA,
  importPath = NULL,
  .opts = list()



a character string. The host and the port are sufficient (e.g: "localhost:5454")


a character string


a character string


the id of the connection already registered to use. By default the first registered connection is used.


if TRUE connection information is saved localy in a file and used to automatically connect the next time. The default is set to FALSE. All the connections that have been saved can be listed with lsBedConnections and any of them can be forgotten with forgetBedConnection.


if TRUE the results of large queries can be saved locally in a file. The default is FALSE for policy reasons. But it is recommended to set it to TRUE to improve the speed of recurrent queries. If NA (default parameter) the value is taken from former connection if it exists or it is set to FALSE.


the path to the import folder for loading information in BED (used only when feeding the database ==> default: NULL)


a named list identifying the curl options for the handle (see neo2R::startGraph()).


This function does not return any value. It prepares the BED environment to allow transparent DB calls.


Be careful that you should reconnect to BED database each time the environment is reloaded. It is done automatically if remember is set to TRUE.

Information about how to get an instance of the BED 'Neo4j' database is provided here: