Provide 'tldrPages' Documentation for Base R Functions

Documentation for commonly-used objects included in the base distribution of R. Note that 'tldrDocs' does not export any functions itself, its purpose is to write .Rd files during its installation for 'tldr()' to find.


tldrDocs

lifecycle

tldrDocs provides tldrPages documentation for many of the commonly-used objects included in the base distribution of R. For example, there is documentation included for all of the distribution functions exported in stats—below, we show the documentation for the *pois() functions:

example showing tldr(dpois) example showing tldr(dpois)

Also included is documentation for the apply() family of functions. Here, we include the documentation for lapply(), sapply(), and vapply():

example showing tldr(lapply) example showing tldr(lapply)

Installation

You can install the development version of tldrDocs from GitHub with:

if (!requireNamespace("remotes")) install.packages("remotes")
remotes::install_github("jamesotto852/tldrDocs")

Once you have installed tldrDocs, you do not need to (and should not) load it via library(). tldrPages::tldr() will be able to find the installed documentation for base R functions automatically.

Details

The goal of tldrDocs is not to provide documentation for every function exported in base R—just those that are commonly used and/or have aspects that are difficult to remember. If you believe that documentation is missing or existing documentation needs correcting, please open an issue or fork this repository and submit a PR. For help on writing tldrPages documentation, see the tldrPages repo.

Note, only base packages are documented via tldrDocs—if you are a package developer that wants to include tldrPages documentation in a package, see tldrExample for an example of a package with tldrPages documentation.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tldrDocs")

0.0.1 by James Otto, a year ago


Browse source code at https://github.com/cran/tldrDocs


Authors: James Otto [aut, cre] , David Kahle [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license



See at CRAN