Re: [R] Shiny App inside R Package

2017-09-17 Thread Marc Girondot via R-help
I have this working in my package embryogrowth available in CRAN. I have a function to call the shiny app: web.tsd <- function() {   if (!requireNamespace("shiny", quietly = TRUE)) {     stop("shiny package is absent; Please install it first")   } getFromNamespace("runApp", ns="shiny")(appDir =

Re: [R] Shiny App inside R Package

2017-09-17 Thread Thierry Onkelinx
Dear Axel, I tend to place Shiny apps in the "inst" directory of the package. See https://stackoverflow.com/questions/37830819/developing-shiny-app-as-a-package-and-deploying-it-to-shiny-server Best regards, ir. Thierry Onkelinx Statisticus/ Statiscian Vlaamse Overheid / Government of Flanders I

[R] Shiny App inside R Package

2017-09-17 Thread Axel Urbiz
Dear List, I have a wrapper function that creates a Shiny App, as illustrated below. I'd like to include the function myApp() inside a package. I'd appreciate your guidance here, as I could not find good instructions on this online. myApp <- function(x) { require(shiny) shinyApp( ui = f