Hi Simon, Easy to do if you call "print" directly: print<-function(x) cat(deparse(substitute(x)),"=\n",x,"\n") y<-3 print(y) y = 3
Obviously you will want to get rid of your print function when it is not being used with "rm" or by starting a new session. Getting it to bypass the default print method is more difficult and I don't have the time to untangle that one at the moment. Jim ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.