search for: structute

Displaying 1 result from an estimated 1 matches for "structute".

Did you mean: structure
2009 Apr 12
1
Simple class with an automatic printing issue
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 *