check_package: Check if a package is installed for the user.

Description Usage Arguments Value Examples

Description

Check if a package is installed for the user.

Usage

1

Arguments

pkg

Name of the package

version

the latest version to be checked

Value

1 if the package is not installed; -1 if the package is not up to date; 0 if the package if the package is installed and up to date.

Examples

1
2
3
4
5
## Not run: 
check_package("RDocumentation","0.2")
check_package("utils","3.3.1")

## End(Not run)

datacamp/RDocumentation documentation built on May 14, 2019, 7:11 p.m.