I'm working through this tutorial and I have a couple of problems.
https://shiny.rstudio.com/articles/persistent-data-storage.html
One minor correction is that rdrop2
seems to have changed and we now require filePaths <- filesInfo$path_lower
More difficult is the recent acquisition of MongoLab by MongoDB Altas. I haven't been able to get the mongolite
example to work. I created a collection and database, as well as a read/write user. The primary host I got from MongoDB is "cluster0-3wvhd.mongodb.net" but I'm not sure if I need a port number.
options(mongodb = list(
"host" = "cluster0-3wvhd.mongodb.net",
"username" = "simon_woodward",
"password" = "its_a_secret"
))
databaseName <- "myshinydatabase"
collectionName <- "responses"
db <- mongo(collection = collectionName,
url = sprintf(
"mongodb+srv://%s:%s@%s/%s",
options()$mongodb$username,
options()$mongodb$password,
options()$mongodb$host,
databaseName))
# shiny app runs but doesn't work and gives
# Error: bad auth Authentication failed.