Nicolabo
Nicolabo

Reputation: 1377

Automatically reloading shiny app when add changes

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.

Upvotes: 14

Views: 4998

Answers (1)

JaKu
JaKu

Reputation: 1166

Executing

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

Upvotes: 17

Related Questions