Hi all,

I've been trying out the code from Chamber's "Classes and Methods in the S
language": http://www.omegahat.org/RSMethods/Intro.pdf
>From my session:

R> whatis <-  function(object) paste( "sdw" )
R> setMethod( "whatis", "vector", function(object) paste( "cswdvcr" ) )
R> dumpMethod( "whatis", "numeric" )
[1] "whatis.numeric.R"

But the "whatis.numeric.R" file contains:

setMethod("whatis", "numeric",
NULL
)

As you can see this is not what the guide describes. My R environment( built
from source ):

R> sessionInfo()
R version 2.6.0 (2007-10-03)
x86_64-unknown-linux-gnu

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] rcompgen_0.1-15 tools_2.6.0

My Linux( uname -a):
Linux hostname 2.6.18.8-0.7-default #1 SMP Tue Oct 2 17:21:08 UTC 2007
x86_64 x86_64 x86_64 GNU/Linux

When searching the list-archives, I found a similar situation:
http://tolstoy.newcastle.edu.au/R/help/06/01/19558.html
But they didn't address this issue, down the thread.

Thanks,
Aravind.

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to