[R] Discovery on packages

Martin Maechler maechler at stat.math.ethz.ch
Wed May 27 08:51:24 CEST 2009


>>>>> "PS" == Phil Spector <spector at stat.berkeley.edu>
>>>>>     on Tue, 26 May 2009 09:25:26 -0700 (PDT) writes:

    PS> Janna -
    PS> Another thing that's sometimes useful with a new package
    PS> is to run the example function, like

    PS> example(TTR)

    PS> This will run the examples from the documentation to give
    PS> you a quick idea of what the package can do.

In addition to that, and the  ?<pkg-name>  ( ?TTR  in this case)
hint by Duncan,
I'd like to mention the traditional

    library(help = TTR)  # very old: S even before there was S+

or the *equivalent*, slightly more intuitive, R - only

    help(package = TTR)

Martin Maechler, ETH Zurich



    PS> On Tue, 26 May 2009, JannaB wrote:

    >> If I download a package -- how can I explore what it does? For
    >> instance, I downloaded the TTR package of off CRAN -- but how can I
    >> find out what it does? Is there a type of API doc for each package? JB
    >> 
    >> ______________________________________________
    >> R-help at r-project.org mailing list
    >> https://stat.ethz.ch/mailman/listinfo/r-help
    >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
    >> and provide commented, minimal, self-contained, reproducible code.
    >> 

    PS> ______________________________________________
    PS> R-help at r-project.org mailing list
    PS> https://stat.ethz.ch/mailman/listinfo/r-help
    PS> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
    PS> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list