I've followed App Publishing Instructions for R Shiny, but I have a .Rmd file/app. Can I publish it directly?
You can run your Shiny app following Shiny example documentation here: https://docs.dominodatalab.com/en/4.4/reference/publish/apps/Getting_started_with_Shiny.html.
There is a difference in the app.sh file, if running a Shiny or rmarkdown. Please ensure the app.sh run command will include the port and listen address:
R -e 'shiny::runApp("rshiny/MyApp.Rmd", port=8888, host="0.0.0.0")'
For rmarkdown, use this command:
R -e 'rmarkdown::run("rshiny/MyApp.Rmd", shiny_args=list(host="0.0.0.0",port=8888) )'
By omitting the port, a random port is used and your app will not work in Domino!
Comments
0 comments
Please sign in to leave a comment.