Main text
The information in the main text should be a short description of the packages, explaining which packages are useful for which tasks. Standard Markdown format can be used to structure the document with sections, itemized and enumerated lists, bold face, italics, etc.
Additionally, short R code chunks with special functions are used for
linking to resources in the same repository: pkg()
for
regular packages, pkg(..., priority = "core")
for important
“core” packages, and view()
for related task views. A
convenience function doi()
creates links for DOIs (digital
object identifiers).
The distinction between “regular” and “core” packages is only important for the installation of CRAN task views because the user can specify whether all packages (default) or only the most important core packages should be installed (with all their dependencies).
If a core package is mentioned several times in the document, it is sufficient to indicate
priority = "core"
for one of the occurrences.Rather than linking to another task view as a whole, e.g.,
view("Econometrics")
, it is also possible to link to specific sections of that view, e.g.,view("Econometrics", "Instrumental variables")
.
Moreover, code projects in other repositories can be linked by using the functions:
bioc()
for Bioconductor packages at https://www.Bioconductor.org/.github()
for GitHub projects at https://github.com/.rforge()
for R-Forge projects at https://R-Forge.R-project.org/.gcode()
for projects in the Google Code archive at https://Code.Google.com/archive/.ohat()
for Omegahat packages at https://www.Omegahat.net/.
Note however that CRAN task views are intended mainly for packages on CRAN (as the name conveys). Thus, links to other repositories should be used for important packages/projects but not list all potentially relevant repositories. Also, it is not necessary to list the GitHub projects for all listed CRAN packages as these are typically provided on the package’s CRAN web page.