View source: R/utils-mongodb.R
connect_to_db | R Documentation |
A simple function for connecting to a mongo database
connect_to_db(collection, database = "rhomis", url = "mongodb://localhost")
collection |
Which collection you want to connect to |
database |
Which database you want to connect to |
url |
The URL of the database you want to connect to |
Rpackage file: utils-mongodb.R
Returns a connection object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.