Restart R within Rstudio

后端 未结 4 1136
感情败类
感情败类 2020-12-13 08:56

I\'m trying to call a simple python script from within R using system2(). I\'ve read some information I found vague that said if \'too much\' memory is used, it won\'t work.

4条回答
  •  孤街浪徒
    2020-12-13 09:38

    RStudio has this undocumented rs.restartR() which is supposed to do just that: restarting R.

    However, it does not unload the packages that were loaded, nor does it clean the environment, so that I have some doubts about if it restarts R at all.

提交回复
热议问题