[R] question about working with workspaces
pburns at pburns.seanet.com
Thu Oct 2 09:43:21 CEST 2008
Duncan Murdoch wrote:
> Daniel Rabczenko wrote:
>> Hello everybody,
>> Two - I hope Simple questions about working with workspaces.
>> Is there a way to force R to start in "clean" workspace / avoid
>> saved workspace restored"?
> Start with --no-restore. (Start with --help for the full list of
> command line options.)
>> When I load workspace"2" working in workspace"1" everything from "1" is
>> written into "2" is there a way to avoid it?
If I understand the question correctly, then the
answer is to use 'attach' rather than 'load'. 'load'
puts everything in the file into the global environment.
'attach' creates a new item in the search list containing
the objects in the file.
patrick at burns-stat.com
+44 (0)20 8525 0696
(home of S Poetry and "A Guide for the Unwilling S User")
> Nothing is written into 2 until you save the workspace. I think you
> mean loading one workspace doesn't delete existing items. That's
> true. You can use the rm() function first to delete the things you
> don't want to keep. Use rm(list=ls(all=TRUE)) to do that --- but use
> it carefully, it's irreversible.
> Duncan Murdoch
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help