I don't understand the following behavior for a simple S3 class. The auto-printing at the command line doesn't behave as I expect. I'm probably missing something, but it might be a bug.
> print.testClass <- function(x, ...) cat("Class:", class(x), ":", x, "\n") > structure(1, class = "testClass") Class: testClass : 1 > print(1 * structure(1, class = "testClass")) Class: testClass : 1 > 1 * structure(1, class = "testClass") # why doesn't auto-printing call print.testClass here? [1] 1 attr(,"class") [1] "testClass" > structure(1, class = "testClass") * 1 Class: testClass : 1 platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status RC major 2 minor 9.0 year 2009 month 04 day 10 svn rev 48318 language R version.string R version 2.9.0 RC (2009-04-10 r48318) [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel