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.
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)