[R] print method for str?

Gabor Grothendieck ggrothendieck at gmail.com
Thu Aug 26 14:39:29 CEST 2010


On Thu, Aug 26, 2010 at 4:42 AM, David Hajage <dhajage.r at gmail.com> wrote:
> Hello useRs and guRus,
>
> I was trying to add the support of str() in the ascii package, and I
> realized that str() does not have a print method. It uses cat() from inside
> the function and returns nothing.
>
> Since it is not usual in R, I wonder why? Is there a particular reason?
>
> Thank you very much for your attention on... well, this unimportant
> question.
>

It still dispatches to S3 methods though.  See str.zoo in the zoo
package as an example.

-- 
GKX Group
GKX Associates Inc.
1-877-GKX-GROUP
ggrothendieck at gmail.com



More information about the R-help mailing list