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 "previously
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 Burns
[EMAIL PROTECTED]
+44 (0)20 8525 0696
http://www.burns-stat.com
(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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to