Is there a way to use runGithub() after packaging shiny app?

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!

This topic was automatically closed 54 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.