Error when deploying new version

I get following error when trying to deploy a new version of a shiny app. I've tried switching off package cache in settings/advanced, but still get the same error

Warning in install.packages("pwr") :
'lib = "/opt/R/4.0.2/lib/R/library"' is not writable
Error in value[3L] : unable to install packages

Are you including install commands in your code? If so, that is the problem.

If you need more specific help, please prepare a reproducible example (reprex) illustrating your issue. Have a look at this resources, to see how to create one for a shiny app

1 Like

WOW yes -thanks a million. The code included
install.packages("pwr")
which was needed on a previous server. Once I removed that, it deployed with no problems.
It's now live at https://davidcolquhoun.shinyapps.io/fpr-calc-ver1-7/
Thanks again.