Learn R Programming

RDocumentation (version 0.5)

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

Description

Check if a package is installed for the user.

Usage

check_package(mypkg, version)

Arguments

mypkg
Name of the package
version
the latest version to be checked

Value

FALSE if the package is not installed, otherwise the versionnumber of the package

Examples

Run this code
check_package("Rdocumentation","0.2")
check_package("utils","3.3.1")

Run the code above in your browser using DataLab