Quit and restart a clean R session from within R?

If you’re in RStudio:
command/ctrl + shift + F10

You can also use

.rs.restartR()

Leave a Comment