Hi!
I just have a quick question. I'm following the steps to minimally package a shiny app. (Chapter 20 Packages | Mastering Shiny).
I've converted the app.R contents into a function as recommended:
library(shiny)
myApp <- function(...) {
ui <- fluidPage(
...
)
server <- function(input, output, session) {
...
}
shinyApp(ui, server, ...)
}
However, I'd like to be able to use the runGithub() command to allow collaborators to easily see progress with the app without having to download the entire package. This worked fine before packaging, but I can't figure out how to maintain this functionality now.
For example, calling the new app.R file returns the error:
Downloading https://github.com/.../master.tar.gz
Error in func(fname, ...) : app.R did not return a shiny.appobj object.
Alternatively, changing app.R to appname.R and creating a new R scriped called app.R returns the same error.
library(shiny)
myApp()
Is there a way to do this?
thanks!