Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically reloading shiny app when add changes

Tags:

r

shiny

xaringan

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.

like image 326
Nicolabo Avatar asked Jan 03 '18 11:01

Nicolabo


1 Answers

Executing

options(shiny.autoreload = TRUE)
should do the trick.
like image 127
JaKu Avatar answered Sep 20 '22 03:09

JaKu