Hi, When writing a script, I often start with:
library(ISwR) attach(thuesen) Then write some more code, testing it as I write to see if it runs. Then, at the end, a final: detach(thuesen) However, what happens is that I often get errors, which cause an attach, but no subsequent detach. Now, I can fix the problem at the console window with several: detach(thuesen) detach(thuesen) detach(thuesen) detach(thuesen) detach(thuesen) Until they are finally all closed. Two questions: 1. What is a more efficient method? 2. What is the command again for viewing the global workspace? D. -- View this message in context: http://r.789695.n4.nabble.com/Seeing-Global-Workspace-and-dealing-with-attach-and-detach-tp4659105.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.