Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to close the live preview app? #37

Open
TimTaylor opened this issue Oct 17, 2024 · 4 comments
Open

How to close the live preview app? #37

TimTaylor opened this issue Oct 17, 2024 · 4 comments

Comments

@TimTaylor
Copy link

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

@yihui
Copy link
Owner

yihui commented Oct 17, 2024

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
Copy link
Author

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
Copy link
Owner

yihui commented Oct 17, 2024

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
Copy link
Author

TimTaylor commented Oct 17, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants