Reputation: 409
Every time I started RStudio, I have seen this my working environment.
I can use rm(list=ls()) to remove them temporarily, but every time I restarted RStudio, they showed up again.
I use getwd() to see my working directory, but in the working directory, I did not see any .Rdata file. How can I get rid of these things ?
Your kind help will be well regarded.
I use Mac OS 10.10.
Upvotes: 2
Views: 4561
Reputation: 60
Click on RStudio in the menu bar and go to Preferences. In the R General section, unclick the Restore .RData into workspace at startup option. The default is to reload the working environment when you restart RStudio.
Upvotes: 3
Reputation: 21047
I think that you, at some point, chose to save your environment to your working directory (most likely ~
, i.e. your home directory, which is the default RStudio working directory).
The easier way to clear your default environment is to remove the .RData
file from your home directory. It will not appear in any Finder window, because in a Unix-like OS (like OS X), files starting with .
are hidden. So do the following:
cd ~
.RData
file: ls -lA .RData
rm .RData
(if you want, create a backup: `cp .RData ./RData_backup)Upvotes: 1