wleepang / DesktopDeployR

A framework for deploying self-contained R-based applications to the desktop
Apache License 2.0
406 stars 120 forks source link

Packing the shiny app before DesktopDeploying it #22

Closed gdgaston closed 4 years ago

gdgaston commented 5 years ago

hello everyone,

First, congratulations for this great idea! I successfully ran the example in this repository that launched my default browser and rendered the app.

Now, I would like to packaging the shiny files before desktopdeploying it. For that, I included a launchApp function when packaging

launchApp <- function(){
  shiny::shinyApp(ui, server)
}

This package, let's say, MyPackage, could be attached and the function launcApp() can launch the app manually in the R terminal

Then I manually add this package into the app/library and changed the app.R function as MyPackage::launchApp()

Once the appname.bat is launched, the browser opened and closed automatically. What did I miss? Grateful if you could guide me on how to packaging first the shiny files before desktopdeploying it. Thank you

wleepang commented 4 years ago

Suggest checking the log file for any errors.

wleepang commented 4 years ago

Closing as this is over 1yr old. Feel free to reopen if still an issue.