mongo_connect | R Documentation |
Basic function used by CEDARS to connect to MongoDB instance. Wraps mongo() from mongolite.
mongo_connect(
uri_fun,
user,
password,
host,
replica_set,
port,
database,
mongo_collection
)
uri_fun |
Uniform resource identifier (URI) string generating function for MongoDB credentials. |
user |
MongoDB user name. |
password |
MongoDB user password. |
host |
MongoDB host server. |
replica_set |
MongoDB replica set, if indicated. |
port |
MongoDB port. |
database |
MongoDB database name. |
mongo_collection |
MongoDB collection; if NA, will connect to DB itself. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.