我使用“rmongodb”包通过R连接mongo DB,连接成功。
> mongo.is.connected(mongo)
[1] TRUE
>
如果我检查运行 mongoDB 的主机。
> use reporting
switched to db reporting
> show collections
MongoIndexing
details
test
>
但是从 R
> mongo.get.database.collections(mongo , db="reporting")
character(0)
>