2

.rs.restartR() can be used to restart the R session. But it only seems to work from within RStudio.

When it's run elsewhere:

.rs.restartR()
Error in .rs.restartR() : could not find function ".rs.restartR"

How can the R session be restarted in other environments? I happen to be operating from a highly constrained cloud environment, so I am limited in what I can do (so things like ctrl + shift + f10) are out of the question

dss
  • 395
  • 3
  • 11
  • In general, functions that begin with `.rs` are functions defined by `RStudio` so they won't be available in general implementations of R. If the R process itself has ended and there is no IDE to work with, you will probably have to use the terminal. – JDL Apr 29 '20 at 14:22

0 Answers0