powered by
Setup a mongoDB database connection
src_mongo(collection = "test", db = "test", url = "mongodb://localhost", ...)
(character) name of collection
(character) name of database
(character) address of the mongodb server in mongo connection string URI format.
additional named params passed on to mongolite::mongo
uses monoglite under the hood; uses mongolite::mongo() for connecting
mongolite::mongo()
# NOT RUN { (con <- src_mongo()) print(con) # }
Run the code above in your browser using DataLab