macros {BiocStyle} | R Documentation |
Functions for adding links to Bioconductor, CRAN and GitHub packages into R Markdown documents.
Biocpkg(pkg) Biocannopkg(pkg) Biocexptpkg(pkg) CRANpkg(pkg) Rpackage(pkg) Githubpkg(repo, pkg)
pkg |
character(1), package name |
repo |
Repository address in the format username/repo[/subdir] |
Use Biocpkg
for Bioconductor software, annotation and experiment data
packages. The function automatically includes a link to the release landing
page or if the package is only in devel, to the devel landing page.
Use CRANpkg
for R packages available on CRAN. The function
automatically includes a link to the master CRAN landing page.
Use Githubpkg
for R packages available on GitHub. The repo
should include the repository address in the format username/repo[/subdir].
If package
is missing, the package name is assumed to be equal the
repository name and is extracted from repo
.
For R packages which are not available on Bioconductor, CRAN or GitHub use
Rpackage
.
Markdown-formatted character vector containing a hyperlinked package name.
Andrzej OleÅ› <andrzej.oles@embl.de>, 2014-2015
## link to a Bioconductor package Biocpkg("IRanges") ## link to a CRAN package CRANpkg("data.table") ## link to an R package on GitHub Githubpkg("rstudio/rmarkdown")