Quit and restart a clean R session from within R?
alias, r
Solution
If you're in RStudio: command/ctrl + shift + F10
You can also use
.rs.restartR()
Problem
Is there a way I can make an alias, within R, that will execute `q()` and then restart a clean R session? And yes, I am too lazy to type `q()` and then the letter `R` :)