When I connect to my MongoDB (db = "mongotest") within a Shiny reactive function within a server function and call m$count(), I always get an "Invalid namespace specified" error:
When I call m$find('{}') in this case, I even get a fatal error that causes my RStudio session to quit. Simply calling m (e.g with print(m)) works fine as well as m$info(). I also tested m$distinct(), which also caused the namespace error to appear.
Strangely, it seems as if somewhere a dot . is added to end of my db name, if I read the error message correctly. I don't know what package throws the error but according to the error message it seems to come from mongolite's mongo_collection_count or mongo_collection_command_simple
When I connect to my MongoDB (db = "mongotest") within a Shiny reactive function within a server function and call
m$count()
, I always get an "Invalid namespace specified" error:When I call
m$find('{}')
in this case, I even get a fatal error that causes my RStudio session to quit. Simply calling m (e.g withprint(m)
) works fine as well asm$info()
. I also testedm$distinct()
, which also caused the namespace error to appear.Strangely, it seems as if somewhere a dot
.
is added to end of my db name, if I read the error message correctly. I don't know what package throws the error but according to the error message it seems to come from mongolite'smongo_collection_count
ormongo_collection_command_simple