No Gridlayout on shiny, need to install from github but get error

I try to start my shiny app but I get the following error when calling:
pacman::p_load(pacman, rio, tidyverse, leaflet, gridlayout, bslib, devtools, shiny)

On shiny logs that the app failed to start:

...Warning in utils::install.packages(package, ...) :
2022-11-25T02:34:34.173049+00:00 shinyapps[7387385]: 'lib = "/opt/R/4.2.2/lib/R/library"' is not writable
2022-11-25T02:34:34.181721+00:00 shinyapps[7387385]: Error in value[3L] : unable to install packages

I don't get the error locally, but only on the server.

Locally, I installed it from github:


This is because the UI was made with the shinyuieditor. If there is no solution to this, I can try porting the UI to non gridlayout but it would be preferred if I didn't need to.

If you are deploying to, avoid using pacman since it is triggering a package install on runtime. Use and explicit library() call for the missing package dependency, and rsconnect() will try to replicate your environment on deployment.

Thank you! This fixed the problem.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.