syntheso
syntheso

Reputation: 447

Can you recommend how to manage package dependencies for apps hosted on shiny server?

I am hosting my Shiny apps via Shiny Server on AWS. The apps I am hosting depend on a package I am actively developing.

I want app1 to use a stable version of the package I am developing (i.e., be fixed to a certain Github release). But app2, I want to follow the latest updates (i.e., that I reinstall on the server every time I want to test something).

Usually, when I install the latest version of my package, this updates things globally, so app1 would be affected. But how could I have a fixed system environment for app1 and a different environment for app2 in this context? What is a good workflow to achieve this?

Upvotes: 2

Views: 482

Answers (1)

syntheso
syntheso

Reputation: 447

I was able to achieve this using adisarid's answer here:

Using renv:

log into the production server, get into the app's directory. Then run R, and use renv::restore and then renv::isolate.

Upvotes: 2

Related Questions