本文介绍了打开Rstudio时如何防止对象自动加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次打开 Rstudio 时,我都会在我的环境中发现一些变量.我怎样才能一次性删除这些?

Everytime I open Rstudio I find some variables in my environment. How can I remove these once for all?

目前,每当我打开 Rstudio 时,我都会运行 rm(list=ls()) 来先清除环境,然后再运行必要的脚本.

Currently, whenever I open Rstudio I run rm(list=ls()) to clear the environment first and then I run the necessary scripts.

我什至试图在关闭 Rstudio 之前清除环境,但在下一次启动时我又在那里找到了变量.

I even tried to clear the environment before closing the Rstudio, but again in the next start I find the variables there.

推荐答案

Tools -> Global options -> 在启动时将 .RData 恢复到工作区 (?)

Tools -> Global options -> Restore .RData into workspace at startup (?)

这篇关于打开Rstudio时如何防止对象自动加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 21:15