I am trying to publish a PLE shiny app based on a PLE study I run in Atlas, so my colleagues can open the shiny interface by a link rather than getting into Rstudio. The PLE shiny app works fine when I run “launchEvidenceExplorer(dataFolder = dataFolder, blind = TRUE, launch.browser = FALSE)”, but it always shows me an error when I try to publish it. The error is:
The application failed to start: exited unexpectedly with code 1
Error in value[[3L]](cond) : object 'shinySettings' not found Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted
I checked the ui.R and the server.R. There is no object ‘shinySettings’ in either one. So, I copied the following codes to the ui.R and the server.R.
appDir ← system.file(“shiny”, “EvidenceExplorer”, package = “EstimationAnalysis.lbu5pamg”)
.GlobalEnv$shinySettings ← list(dataFolder = dataFolder, blind = blind)
shinySettings object shows in the Rstudio environment, but I still get the error message below.
The application failed to start (exited with code 1).
2021/05/12 14:36:40.497098488 Using Packrat dir /opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.0.2 2021/05/12 14:36:42.382100628 Error in value[[3L]](cond) : object 'shinySettings' not found 2021/05/12 14:36:42.382108850 Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> 2021/05/12 14:36:42.382150011 Execution halted
Any ideas? Appreciate your help in advance.