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:
devtools::install_github("rstudio/gridlayout")
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.