Last data update: 2014.03.03

R: Checks whether a package has already been installed. If it...
validate_installed_packageR Documentation

Checks whether a package has already been installed. If it has, and if the version corresponds to the required package version, then it returns TRUE. If it has been installed and the version does not correspond to the required version, then it throws an exception. Otherwise, it returns false.

Description

Checks whether a package has already been installed. If it has, and if the version corresponds to the required package version, then it returns TRUE. If it has been installed and the version does not correspond to the required version, then it throws an exception. Otherwise, it returns false.

Usage

validate_installed_package(package, version, compare)

Arguments

package

the package to check

version

the required version

compare

the comparison operator

Value

whether we should install the package

Results