yihui / litedown

A lightweight version of R Markdown
https://yihui.org/litedown/
Other
169 stars 3 forks source link

How to close the live preview app? #37

Open TimTaylor opened 5 days ago

TimTaylor commented 5 days ago

Apologies if I have missed something obvious but is there a way to close the live preview app without closing the R session?

yihui commented 5 days ago

If you are in RStudio Viewer, use the broom button to clear the page. If you are in a web browser, close the browser page.

TimTaylor commented 5 days ago

If you are in a web browser, close the browser page.

AFAICT - this doesn't stop the app running (i.e. I can revisit the same address and still get the live updates).

yihui commented 4 days ago

You are right. When the app doesn't have any active client connecting to it, it won't do anything and is harmless. Technically it is just a function registered in a special environment. If you do want to clean up that function, I can certainly provide a way to do it.

TimTaylor commented 4 days ago

If you do want to clean up that function, I can certainly provide a way to do it.

That would be good. Even if I may not utilise the clean-up often, it does feel like something I should be able to do.

BTW - I really like litedown::roam(). This is will be awesome for navigating notes / presentations etc!