wleepang / DesktopDeployR

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

RMarkdown with "runtime: shiny" not supported? #40

Open edonnachie opened 2 years ago

edonnachie commented 2 years ago

First, thankyou for developing DesktopDeployR. It's a helpful way to get started with shiny in a corporate environment.

Can you confirm that RMarkdown documents with shiny runtime are not supported. I've tried adding rmarkdown::run() to app.R and it doesn't seem to work (no error, just stops). I'm not an expert, but it seems that rmarkdown::run() does not open the browser like shiny::runApp does.

Shaunson26 commented 2 years ago

This does work, I just tried it. I had this in my app.R, with runtime: shiny in the rmd rmarkdown::run('./app/shiny/flexdash.Rmd', shiny_args = list(launch.browser=TRUE)) there are other issues with when you close this browser though, there are R zombie processes left over, and the app wont start again (at least in my experience). I need to kill it first. I'm just about to post this experience in the issues..