Ho David, just rename the copied function to sg else. It does not even has to be s3, probably.
Gabor On 28 Jan 2016 13:16, "David Scott" <d.sc...@auckland.ac.nz> wrote: > I am trying to incorporate a print method for flat tables into the package > xtable which I maintain. > > To format the flat table before printing, I wish to use format.ftable from > the base package stats. > This is unfortunately not exported, so R CMD check --as-cran produces a > warning because I access that function using stats:::format.ftable. > > So, having read the thread about this problem, I think I should copy the > function into my package. I do that, and declare format.ftable as an S3 > format method. Now I get a different warning: > > Registered S3 method from a standard package overwritten by 'xtable': > method from > format.ftable stats > > I am at a loss. Any suggestions? > > David Scott > > -- > _________________________________________________________________ > David Scott Department of Statistics > The University of Auckland, PB 92019 > Auckland 1142, NEW ZEALAND > Phone: +64 9 923 5055, or +64 9 373 7599 ext 85055 > Email: d.sc...@auckland.ac.nz, Fax: +64 9 373 7018 > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel