rstudio / shinyapps-package-dependencies

Collection of bash scripts that install R package system dependencies
https://www.shinyapps.io/
Other
79 stars 56 forks source link

Add support for BSTS #193

Open logisticregress opened 5 years ago

logisticregress commented 5 years ago

Deary Shiny App - please add support for BSTS - there seem to be a lot of problems related to the package dependencies, which cause RSConnect to time out and crash.

jspiewak commented 5 years ago

Package bsts relies upon Boom, which we know has issues compiling for shinyapps.io. There is currently no workaround.

logisticregress commented 5 years ago

Hi Joshua - this is from the author of the BSTS package. I do not know how to accomplish what he recommends. I'm using R Studio on a Windows 10 machine.

The only build issues I have heard of recently are that the build sometimes times out. The solution is to build with multiple threads. There is a line in the Boom_xxx.tgz source file Boom/src/Makevars, near the top, that controls the multiple threading. Uncomment that line (or build by hand with MAKEVARS="-j 16" R CMD INSTALL Boom_xxx.tgz) and you should be good to go.

jspiewak commented 5 years ago

Boom causes the build to exit as opposed to fail. We are not noticing this properly, and thus we timeout after the maximum build time is reached. I have not been able to track down the cause of exit.

rinaldif commented 4 years ago

A solution that worked for me was to load the following three libraries directly in the Shiny App:

... library(Boom) library(BoomSpikeSlab) library(bsts) library(CausalImpact) ... ui <- ... ... server <- ... ...