Automatically reloading shiny app when add changes

拟墨画扇 提交于 2019-12-05 22:55:50

问题


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.

来源:https://stackoverflow.com/questions/48076237/automatically-reloading-shiny-app-when-add-changes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!