[Rd] .S3methods: issue in content of info data.frame

Renaud Gaujoux renaud at techunix.technion.ac.il
Fri Nov 11 13:56:52 CET 2016


Hi,

I was trying to get a list of S3 method for a given generic, along with the
package in which they are defined, and I came across what looks like an
issue in the data.frame returned in attribute 'info'. The column 'from'
mostly gets the value "registered S3method for ..." except for visible
methods. Is this the expected behavior?
See code and output below.

Thank you.

Bests,
Renaud

$ Rscript -e "library(xtable); attr(.S3methods('plot'), 'info');
sessionInfo()"
                   visible                         from generic  isS4
plot.acf             FALSE registered S3method for plot    plot FALSE
plot.data.frame      FALSE registered S3method for plot    plot FALSE
plot.decomposed.ts   FALSE registered S3method for plot    plot FALSE
plot.default          TRUE                     graphics    plot FALSE
plot.dendrogram      FALSE registered S3method for plot    plot FALSE
plot.density         FALSE registered S3method for plot    plot FALSE
plot.ecdf             TRUE                        stats    plot FALSE
plot.factor          FALSE registered S3method for plot    plot FALSE
plot.formula         FALSE registered S3method for plot    plot FALSE
plot.function         TRUE                     graphics    plot FALSE
plot.hclust          FALSE registered S3method for plot    plot FALSE
plot.histogram       FALSE registered S3method for plot    plot FALSE
plot.HoltWinters     FALSE registered S3method for plot    plot FALSE
plot.isoreg          FALSE registered S3method for plot    plot FALSE
plot.lm              FALSE registered S3method for plot    plot FALSE
plot.medpolish       FALSE registered S3method for plot    plot FALSE
plot.mlm             FALSE registered S3method for plot    plot FALSE
plot.ppr             FALSE registered S3method for plot    plot FALSE
plot.prcomp          FALSE registered S3method for plot    plot FALSE
plot.princomp        FALSE registered S3method for plot    plot FALSE
plot.profile.nls     FALSE registered S3method for plot    plot FALSE
plot.raster          FALSE registered S3method for plot    plot FALSE
plot.spec            FALSE registered S3method for plot    plot FALSE
plot.stepfun          TRUE                        stats    plot FALSE
plot.stl             FALSE registered S3method for plot    plot FALSE
plot.table           FALSE registered S3method for plot    plot FALSE
plot.ts               TRUE                        stats    plot FALSE
plot.tskernel        FALSE registered S3method for plot    plot FALSE
plot.TukeyHSD        FALSE registered S3method for plot    plot FALSE
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS

locale:
 [1] LC_CTYPE=en_ZA.UTF-8       LC_NUMERIC=C
LC_TIME=en_ZA.UTF-8        LC_COLLATE=en_ZA.UTF-8
LC_MONETARY=en_ZA.UTF-8
 [6] LC_MESSAGES=en_ZA.UTF-8    LC_PAPER=en_ZA.UTF-8
LC_NAME=C                  LC_ADDRESS=C
LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_ZA.UTF-8 LC_IDENTIFICATION=C

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

other attached packages:
[1] xtable_1.8-2

loaded via a namespace (and not attached):
[1] tools_3.3.2

	[[alternative HTML version deleted]]



More information about the R-devel mailing list