2

I looking for command/script equal to shortcut CTRL+SHIFT+F10 (which means restart) in Rstudio. I need to do this because of conflicts/cache's in few packages. I can't lose variable I made earlier.

PS: rm(ls() ) is not a solution!

Phil
  • 7,287
  • 3
  • 36
  • 66
Taz
  • 5,755
  • 6
  • 26
  • 63
  • possible duplicate of [Quit and restart a clean R session from within R?](http://stackoverflow.com/questions/6313079/quit-and-restart-a-clean-r-session-from-within-r) – scoa Aug 07 '15 at 08:47
  • I hope the following link helps solve your problem. https://stackoverflow.com/questions/45872029/why-doesnt-restarting-r-with-ctrl-shift-f10-clear-my-environment-variables – Ashok Patil Mar 16 '18 at 07:34

1 Answers1

2

You can use .rs.restartR() to restart R session

yess92
  • 21
  • 3