Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何 R 代码可以重新启动 rsession?我通常通过按来执行此操作cntrl+shift+0。但现在想在我的代码中做到这一点。我怎样才能做到这一点?
cntrl+shift+0
根据您实际尝试完成的任务,您可能只是想要类似的东西
rm(list=ls())
注意:请注意此代码实际上会删除您的整个工作/变量/数据