How can I access an object in an attached but deleted environment, when the object also exists in the .GolbalEnv?
I hope the example below makes the question clear: --8<---------------cut here---------------start------------->8--- tmp <- attach(what=NULL, name="org:variables") tmp$test = 13 rm(tmp) test # > 13 test <- 24 test # > 24 ls(all=TRUE) # > character(0) # # how can I access the variable test in the object org:variables in the # search path? # rm(test) test # > 13 --8<---------------cut here---------------end--------------->8--- Any suggestions? Thanks, Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982
pgpGXsRAdJ4qT.pgp
Description: PGP signature
______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel