Get an URL for a specific package (Markdown style).

url_cran(pkg = "")

url_bioc(pkg = "")

url_gh(pkg = "", user = "cran")

Arguments

pkg

a package name.

user

a GitHub user name or a GitHub organisation name.

Value

A link to the CRAN's canonical URL for a given package formatted in Markdown. Note that is pkg = "" a link to the CRAN is returned.

Functions

  • url_bioc(): A link to the Bioconductor's short URL for a given package formatted in Markdown. Note that is pkg = "" a link to Bioconductor is returned.

  • url_gh(): A link to the GitHub repository for a given package. If pkg = "" a link to the user account in returned and if pkg = "" and

Examples

url_cran("")
#> [1] "[CRAN](https://CRAN.R-project.org)"
url_cran("ps")
#> [`ps`](https://CRAN.R-project.org/package=ps)
url_gh("inSilecoRef", "inSileco")
#> [`inSilecoRef`](https://github.com/inSileco/inSilecoRef)
url_bioc("CRImage")
#> [`CRImage`](https://bioconductor.org/packages/CRImage/)