You can avoid loading .Rdata at start-up without deleting the .Rdata
file by adding the --no-restore option to the R command. I have that,
and additionally, --no-save, in my shortcut for the Rgui.exe command. I
use explicit save() and load() in my scripts to save objects that are
expensive to com
I believe the following function is something like what Mark was
looking for. The previously posted answers to his inquiry were more
of the form ``Do this instead of what you want to do.'' rather than
``Here's how to do what you want to do.''
clean <- function()
{
# Function clean.
lll <-
]
[mailto:[EMAIL PROTECTED] On Behalf Of Leeds, Mark (IED)
Sent: Monday, November 27, 2006 3:30 PM
To: r-help@stat.math.ethz.ch
Subject: [R] automatic cleaning of workspace
I'm having that problem where I am sometimes using an object that's from
a previous workspace when I don't want to b
On Mon, 2006-11-27 at 18:29 -0500, Leeds, Mark (IED) wrote:
> I'm having that problem where I am sometimes using an object that's from
> a previous workspace when I don't want to be doing that. I was thinking
> of putting rm(objects=ls()) in my first.R function But, the problem with
> doing this, i
I'm having that problem where I am sometimes using an object that's from
a previous workspace when I don't want to be doing that. I was thinking
of putting rm(objects=ls()) in my first.R function But, the problem with
doing this, is that it doesn't prompt you with "are you sure" and there
could be