Skip to content
Prev 664 / 12125 Next

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

On 28/01/2016 7:47 AM, David Scott wrote:
stats::format() is exported, and it will delegate to format.ftable if 
the class of the object is "ftable".  So the normal solution is just to 
call stats::format() on your object.

If your object has a different class (e.g. "mytable"), it might be that 
you need to do this from your own format.mytable method.  Then 
NextMethod() is supposed to work, assuming the class is really 
c("mytable", "ftable").

If the class is just "mytable", then you'll have to change it to 
"ftable" before calling stats::format().

Duncan Murdoch