Automatically reloading shiny app when add changes

2019-04-09 22:01发布

问题:

I would like to have an option (when working locally) which allows me to see changes in my shiny app automatically after I put some changes in server.R or ui.R file. It is really annoying to manually rerun runApp function every time I add a new thing.

The optimal solution which I really like is xaringan::inifinite_moon_reader function which is extremely helpful.

Is there any solution which do this stuff?

You can find analogical solution here. On the right, the code was modified and saved, on the left, the content of page was updated.

回答1:

Executing

options(shiny.autoreload = TRUE)
should do the trick.


标签: r shiny xaringan