Error in Shiny App After Deployment

Hello,

When I run my ShinyApp locally everything works fine. When I deploy it to my shiny.io space I get the following message when I visit it:

Warning in install.packages("shiny") :
'lib = "/opt/R/3.4.2/lib/R/library"' is not writable
Error in value[3L] : unable to install packages
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
Execution halted

Here are my deployment stats:

Preparing to deploy application...DONE
Uploading bundle for application: 1498413...DONE
Deploying bundle: 2603023 for application: 1498413 ...
Waiting for task: 668934485
building: Parsing manifest
building: Building image: 2831278
building: Fetching packages
building: Installing packages
building: Installing files
building: Pushing image: 2831278
deploying: Starting instances
rollforward: Activating new instances
terminating: Stopping old instances
Application successfully deployed to https://garrettrsmith.shinyapps.io/GARNA_shinyapp/
Deployment completed: https://garrettrsmith.shinyapps.io/GARNA_shinyapp/
Warning message:
In as.POSIXlt.POSIXct(x, tz = tz) :
unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Denver'

Don't include install.packages calls in the code you deploy, just the library(shiny), for example, that indicates usage. The packages will be installed automatically.

1 Like

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.