Unable to see collections in mongo DB when connected through R
问题 I used "rmongodb" package to connect to mongo DB through R. The connection is successful. > mongo.is.connected(mongo) [1] TRUE > If I check at the host where mongoDB is running. > use reporting switched to db reporting > show collections MongoIndexing details test > But from R > mongo.get.database.collections(mongo , db="reporting") character(0) > 回答1: The below code will return an array of collection names iff the provided database has collections in it. Otherwise, it will return character(0