pkg.check | R Documentation |
Function to check if a package is installed. It works with bioconductor or CRAN packages.
pkg.check(package, archive)
package |
A single string indicating the name of the package to check. |
archive |
A single string indicating the type of archive. Possible values "CRAN" and "bioconductor" (not case sensitive). Parameter without default.. |
If the pkg is not already installed it will be installed.
pkg.check("ggplot2", "cran")
pkg.check("biomaRt", "bioconductor")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.