Learn R Programming

AnalysisPageServer (version 1.6.2)

checkPackageInstalled: Checks if a given package is installed.

Description

Checks if a given package is installed.

Usage

checkPackageInstalled(pkg, version = "0.0.0", required = FALSE)

Arguments

pkg
A character string containing a package name.
version
A minimum version number. Default: "0.0.0" (no version requirement)
required
A boolean. The functions stops if set to TRUE and if the required package is not present. Default is FALSE.

Value

A boolean.

Examples

Run this code
checkPackageInstalled("AnalysisPageServer")

Run the code above in your browser using DataLab