Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems spinning up a shiny app with docklet_shinyapp #179

Closed
studerus opened this issue Jun 11, 2019 · 5 comments
Closed

Problems spinning up a shiny app with docklet_shinyapp #179

studerus opened this issue Jun 11, 2019 · 5 comments
Milestone

Comments

@studerus
Copy link

I tried to spin up a shiny app with docklet_shinyapp. It works fine using the example in the help file, but not with my own shiny app. It says "The application exited during initialization. "
I think the problem is that my shiny app uses R packages that are not installed on the shinyapp docklet. How can install additional packages? I tried the following, which did not work:

d %>% docklet_run("rocker/shiny", "Rscript -e 'install.packages(\"shinydashboard\")'")

Also, how can I get the error log to find out what error occurred in the shiny app?

@sckott
Copy link
Collaborator

sckott commented Jun 11, 2019

session info please, as requested

@studerus
Copy link
Author

I didn't provide the session info because the problem is not on the local machine, but here it is anyway:

R version 3.6.0 (2019-04-26)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=German_Switzerland.1252  LC_CTYPE=German_Switzerland.1252    LC_MONETARY=German_Switzerland.1252 LC_NUMERIC=C                       
[5] LC_TIME=German_Switzerland.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] analogsea_0.7.0

loaded via a namespace (and not attached):
[1] httr_1.4.0     compiler_3.6.0 magrittr_1.5   R6_2.4.0       tools_3.6.0    yaml_2.2.0     jsonlite_1.6

@sckott
Copy link
Collaborator

sckott commented Jun 12, 2019

for seeing logs:

# to get running containers
docklet_ps(d)
# get logs
droplet_ssh(d, "docker logs <container ID>")
# to get continuous feed
droplet_ssh(d, "docker logs -f <container ID>")

@sckott
Copy link
Collaborator

sckott commented Jun 12, 2019

for the dependencies:

droplet_ssh(d, "docker exec <container ID> R -e 'install.packages(\"shinydashboard\")'")

make sure not to use docker exec -ti since it's not interactive

@studerus
Copy link
Author

Thank you very much. It works. It would be great if you could add this to the documentation.

@sckott sckott added this to the v0.8 milestone Jun 14, 2019
@sckott sckott closed this as completed in eda4272 Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants