Shinyapps.io-error when running app

shinyappsio

#1

I've deployed an app to shinyapps.io, but, I get this error when I run the app from Shinyapps.io:

An error has occurred

The application failed to start (exited with code 1).

Warning in install.packages(setdiff(packages, rownames(installed.packages()))) : 'lib = "/opt/R/3.4.0/lib/R/library"' is not writable Error in value[[3L]](cond) : unable to install packages Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted

anyone have any idea how I can fix this? Thanks in advance.


#2

You likely deployed code that contains install.packages. You should only have library calls.

http://docs.rstudio.com/shinyapps.io/getting-started.html#using-your-r-packages-in-the-cloud


#3

Hi Josh,
This worked. I used "require" instead of "library".

Also, I've deployed older versions of this app which included install.packages and they worked well. Curious.

Regardless, thank you for the help. That worked.