Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 534 Bytes
\title{Connecting to a MongoDB database}
Creates a RMongo object to use with querying and inserting methods.
mongoDbConnect(dbName, host="", port=27017)
\item{dbName}{Database name.}
\item{host}{ Host name. Default to localhost: You can specify a remote host. {optional}}
\item{port}{ Port number. Default to mongodb's default port 27017. {optional}}
mongo <- mongoDbConnect("test", "", 27017)
Jump to Line
Something went wrong with that request. Please try again.