Duncan Murdoch said: > environment(arima) <- environment(stats::arima)
Doh!, in a word. That is a really useful trick; same effect as copying and fooling about with body() to get an object with the right environment, but I'd completely overlooked the fact that you can assign an environment from one object directly to another object. This kind of thing is exactly what makes watching R-help so worthwhile. S Ellison ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}} ______________________________________________ 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.