why 

rm(list=ls(all=TRUE),envir=globalenv())

is ok but

ca<-function()  rm(list=ls(all=TRUE),envir=globalenv())
ca()

does not work?


Thank you!
v

-- 
View this message in context: 
http://www.nabble.com/Clear-all-with-without-function%28%29-tp22947021p22947021.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.

Reply via email to