Updating packages in Shiny

I have an R Shiny app I've had zero problems with for about a year now. Suddenly it isn't working ("disconnected from server"), and I discovered that the issue seems to be one of the packages (rdrop2) the app depends on was recently updated. When i run the app off my desktop after reinstalling rdrop2 the app runs fine.

Is there a way to have R Shiny install the latest version of a package? I tried including install.packages("rdrop2") in my code but to no avail.

1 Like

If I'm understanding your problem correctly, I might suggest you go in a different direction. Have you used the packrat package? Basically, it makes a library specific to your project - in this case your Shiny app. This library is independent from your usual working library, so that your app is guaranteed to run the same way, independent of anything you update for other projects.

The link below refers to Shiny Server Pro, but packrat works the same regardless of whether you use Shiny Server Pro or not.