Skip to contents

Setup a MongoDB database connection

Usage

src_mongo(collection = "test", db = "test", url = "mongodb://localhost", ...)

Arguments

collection

(character) Name of collection

db

(character) Name of database

url

(character) Address of the MongoDB server in Mongo connection string URI format, see to mongolite::mongo()

...

Additional named parameters passed on to mongolite::mongo()

Details

Uses monoglite under the hood; uses mongolite::mongo() for connecting

Examples

if (FALSE) {
con <- src_mongo()
print(con)
}