Local shiny in markdown


Do you if there is an option for including a shiny app in an R bookdown file, which is not uploaded primarily?
So when writing knitr::include_app(.) I refer to a local .R file instead of a URL or similar (the mentioned try does not work).

Thank you for your help in advance,

Is it for publishing purposes or to use when developping locally ?

For a shiny app to be included, I think you must serve the application. A bookdown project can't execute a shiny app. Uploading the application onto an hosting service is the best solution, but you can also host your application only locally. That means if you serve the application, and use the http://localhost:<port> url, I think it should work while using include_app() in bookdown.

You can serve the application from your R file in another R process, for example using Background job in RStudio IDE (since 1.3).

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.