Learn R Programming

HiCociety (version 0.1.39)

check_package: Check if a package is installed

Description

This function checks whether a package is installed. If the package is not installed, it informs the user that the package is missing.

Usage

check_package(package)

Value

A logical value: TRUE if the package is installed, FALSE otherwise.

Arguments

package

The name of the package to check.

Author

Sora Yoon, PhD

Details

This function checks whether a package is installed. If the package is not installed, it informs the user that the package is missing.

Examples

Run this code
check_package('dplyr')

Run the code above in your browser using DataLab