4
votes

This is a strange request - but is it possible to 1) terminate an R session from within RStudio but keep RStudio open? ... and then 2) to start a new R session from within RStudio?

I see such a feature was requested of RStudio in 2013 but I don't know if it is implemented.

1
You can restart R in rstudio by entering .rs.restartRCarl
This does not appear to wipe the environment in RStudio.vincentmajor

1 Answers

5
votes

In Rstudio (at least on Windows version 3.3.0), in the top menu bar with file, edit etc. under Session is an option to Terminate R... which will terminate the R session but RStudio will stay open and automatically restart a new R session.