pkg.check: Check package installation.

View source: R/pkg.check.R

pkg.checkR Documentation

Check package installation.

Description

Function to check if a package is installed. It works with bioconductor or CRAN packages.

Usage

pkg.check(package, archive)

Arguments

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..

Value

If the pkg is not already installed it will be installed.

Examples

pkg.check("ggplot2", "cran")

pkg.check("biomaRt", "bioconductor")


sebastian-gregoricchio/Rseb documentation built on May 15, 2024, 5:45 a.m.