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

2016-01-28 Thread Kirill Müller
On 28.01.2016 14:20, Duncan Murdoch wrote: If the class is just "mytable", then you'll have to change it to "ftable" before calling stats::format(). Side note: The following will fail, because format.ftable double-checks the class of its argument: format_ftable <- utils::getS3method("format",

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

2016-01-28 Thread Duncan Murdoch
On 28/01/2016 7:47 AM, David Scott 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

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

2016-01-28 Thread Gábor Csárdi
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" 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

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

2016-01-28 Thread David Scott
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 acces