打开Rstudio时如何防止对象自动加载

时间:2021-02-01 15:09:58

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

每次我打开Rstudio,我都会在我的环境中找到一些变量。我怎么能一次性删除这些?

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

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

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

我甚至试图在关闭Rstudio之前清除环境,但是在下一次启动时我会在那里找到变量。

1 个解决方案

#1


10  

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

工具 - >全局选项 - >在启动时将.RData恢复到工作空间(?)

#1


10  

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

工具 - >全局选项 - >在启动时将.RData恢复到工作空间(?)