Re: [R] deparse(substitute(x)) on an object with S3 class

2012-05-03 Thread Remko Duursma
Thanks for that - too bad there isn't a simple workaround! greetings Remko -- View this message in context: http://r.789695.n4.nabble.com/deparse-substitute-x-on-an-object-with-S3-class-tp4605592p4607815.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] deparse(substitute(x)) on an object with S3 class

2012-05-03 Thread Thomas Lumley
On Fri, May 4, 2012 at 2:02 AM, R. Michael Weylandt wrote: > Note that print.testclass(testlist) also works as expected so it might > be there's a forced evaluation somewhere inside S3 dispatch Indeed. Without evaluating the argument, the S3 method dispatch can't work out which method to dispatch

Re: [R] deparse(substitute(x)) on an object with S3 class

2012-05-03 Thread R. Michael Weylandt
Note that print.testclass(testlist) also works as expected so it might be there's a forced evaluation somewhere inside S3 dispatch -- I was playing around with this the other day, having gotten myself confused by it and stumbled across the internal logic (or at least something that made sense to me