[R] S4 Question; show generic method

stephen sefick ssefick at gmail.com
Thu May 18 22:17:50 CEST 2017


Hello,

I changed the name of a function, and updated my R packages with
update.packages(ask=FALSE), and I have had a curious (to me) change in show
method. I am developing a package, and a generic show method I defined for
my S4 class is not autocalled when I type the object name - object_name;
however, the show(object_name) works as expected. I have included the
output from sessionInfo():

R version 3.3.2 (2016-10-31)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

locale:
 [1] LC_CTYPE=en_US.utf8       LC_NUMERIC=C
 [3] LC_TIME=en_US.utf8        LC_COLLATE=en_US.utf8
 [5] LC_MONETARY=en_US.utf8    LC_MESSAGES=en_US.utf8
 [7] LC_PAPER=en_US.utf8       LC_NAME=C
 [9] LC_ADDRESS=C              LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C

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

other attached packages:
[1] genotypeR_0.0.0.9000 ggplot2_2.2.1

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.10     lattice_0.20-35  zoo_1.8-0        MASS_7.3-47
 [5] grid_3.3.2       plyr_1.8.4       gtable_0.2.0     magrittr_1.5
 [9] scales_0.4.1     stringi_1.1.5    rlang_0.1.1      reshape2_1.4.2
[13] lazyeval_0.2.0   doBy_4.5-15      Matrix_1.2-10    tools_3.3.2
[17] stringr_1.2.0    munsell_0.4.3    colorspace_1.3-2 tibble_1.3.1

I appreciate any help with this problem.
kindest regards,

Stephen

-- 
Let's not spend our time and resources thinking about things that are so
little or so large that all they really do for us is puff us up and make us
feel like gods.  We are mammals, and have not exhausted the annoying little
problems of being mammals.

                                -K. Mullis

"A big computer, a complex algorithm and a long time does not equal
science."

                              -Robert Gentleman

	[[alternative HTML version deleted]]



More information about the R-help mailing list