Skip to content

mongo.get.database.collections return empty vector #93

@fxjollois

Description

@fxjollois

Hi,

the function mongo.get.database.collections returns an empty character vector, even if the database has one or more collections. I use R 3.2.3, and the latest version of Rmongodb.

Here is the R code:

> library(rmongodb)
> con = mongo.create(host = "iphost")
> mongo.is.connected(con)
[1] TRUE
> mongo.get.databases(con)
[1] "gym"         "horodateurs" "test"       
> mongo.get.database.collections(con, "test")
character(0)

And when I test on mongo shell:

MongoDB shell version: 3.2.4
connecting to: test
> use test
switched to db test
> show collections
restaurants

I see that other users encounter the same issues, but I do not see any way to get the collections list.

FX Jollois

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions