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.