powered by
mongo.reconnect()
mongo.disconnect(mongo)
mongo.create
mongo.reconnect
mongo.is.connected
mongo <- mongo.create() if (mongo.is.connected(mongo)) { n_people <- mongo.count(mongo, "test.people") mongo.disconnect(mongo) }
Run the code above in your browser using DataLab