I am trying to connect with the MongoDB database and also insert the model output data frame. The Database has showing connect but not showing all collection. Given an error authentication.
Please share any suggestions. Also, please check my code to connecting database.
Blockquote
Install Library
library(devtools)
#install_github("Rmongo" , "tc")
library(rJava)
library(RMongo)
library(dplyr)
connect to database
mongo <- mongoDbConnect("xxxxxx",host = " xxxxxx", port = 27017) # db name
login
auth <- dbAuthenticate(mongo,"username","password")
auth
dbDisconnect(mongo)
#show the collections
dbShowCollections(mongo)
ListofTable <- dbShowCollections(mongo)