Hi,
Strange things happen. Here is a simple example:
setClass(A, contains=integer)
setMethod(as.matrix, A, function(x, ...) t(callNextMethod()))
Creating a generic function for ‘as.matrix’ from package ‘base’ in
the global environment
[1] as.matrix
a - new(A, 1:3)
as.matrix(a)
FWIW, here is my sessionInfo:
sessionInfo()
R Under development (unstable) (2012-07-25 r59963)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8