[R-pkg-devel] Problems with :::

David Scott d.scott at auckland.ac.nz
Thu Jan 28 13:47:53 CET 2016


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.scott at auckland.ac.nz,  Fax: +64 9 373 7018



More information about the R-package-devel mailing list