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"? When I load workspace"2" working in workspace"1" everything from "1" is written into "2" is there a way to avoid it? Best regards, Daniel Rabczenko [[alternative HTML version deleted]]
Daniel Rabczenko <d.rabczenko <at> iestat.pl> writes:> > 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"?When you start R, use the option --no-restore. If you are working in windows you can add this to the target field of the the shortcut that you use to start R.> When I load workspace"2" working in workspace"1" everything from "1" is > written into "2" is there a way to avoid it?Take a look at ?save. Mark Lyman> Best regards, > > Daniel Rabczenko >
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? >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