sachinthaka.abeywardana at allianz.com.au
2010-Oct-20 23:05 UTC
[R] loading workspace- getting annoying
I stupidly decided to save my last workspace (a large dataset) and every time I open R it loads it back in. Can I stop this? Also how do you clear variables. Thanks, Sachin --- Please consider the environment before printing this email --- Allianz - General Insurance Company of the Year 2009+ + Australia and New Zealand Insurance Industry Awards This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is intended solely for the addressee. It is confidential, may contain personal information and may be subject to legal professional privilege. Unauthorised use is strictly prohibited and may be unlawful. If you have received this by mistake, confidentiality and any legal privilege are not waived or lost and we ask that you contact the sender and delete and destroy this and any other copies. In relation to any legal use you may make of the contents of this email, you must ensure that you comply with the Privacy Act (Cth) 1988 and you should note that the contents may be subject to copyright and therefore may not be reproduced, communicated or adapted without the express consent of the owner of the copyright. Allianz will not be liable in connection with any data corruption, interruption, delay, computer virus or unauthorised access or amendment to the contents of this email. If this email is a commercial electronic message and you would prefer not to receive further commercial electronic messages from Allianz, please forward a copy of this email to unsubscribe at allianz.com.au with the word unsubscribe in the subject header.
On Oct 20, 2010, at 7:05 PM, sachinthaka.abeywardana at allianz.com.au wrote:> > I stupidly decided to save my last workspace (a large dataset) and > every > time I open R it loads it back in. Can I stop this? Also how do you > clear > variables. > > Thanks, > Sachin > > --- Please consider the environment before printing this email ---You have not shared with us the "at a minimum" information requested in the Posting Guide (although your silly corporate confidential trailer was appended), so take a moment now and read the Posting Guide, please. The saved workspace can be deleted. It is a file named .Rdata and in some OSes is "indivisible". Consult your OS documentation (such as it may be) regarding deleting "invisible" or "dot" or system files. You can also start R without any workspace if starting R from a command line and I believe that it is done with the --vanilla setting. Yes, that seems to behave as I expected. (I generally use the Mac GUI.) From a Terminal session: david-winsemiuss-mac-pro:~ davidwinsemius$ R --vanilla R version 2.11.1 Patched (2010-06-14 r52281) ---snipped login information---- Type 'q()' to quit R. > ls() character(0) In fact it seems to have also skipped loading my utility functions from .Rprofile as well as skipping the workspace .Rdata file. -- David Winsemius, MD West Hartford, CT
Also, rm(list=ls()) will remove absolutely everything from your workspace. Next time you quit and save workspace you start with and empty workspace. -- View this message in context: http://r.789695.n4.nabble.com/loading-workspace-getting-annoying-tp3004781p3138203.html Sent from the R help mailing list archive at Nabble.com.
Thanks for your answers on R-help, although it is not very helpful - not to cite / quote the original question - not to answer to the questioner who may not be subscribed to the mailing list and hence may not recognize your answer at all. Best wishes, Uwe Ligges On 21.12.2010 10:42, Angel Salamanca wrote:> > Also, > > rm(list=ls()) > > will remove absolutely everything from your workspace. Next time you quit > and save workspace you start with and empty workspace.