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.
.rs.restartR
– Carl