check_package: Check if a package is installed

View source: R/main.R

check_packageR Documentation

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)

Arguments

package

The name of the package to check.

Details

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

Value

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

Author(s)

Sora Yoon, PhD

Examples

check_package('dplyr')

HiCociety documentation built on Feb. 16, 2026, 5:10 p.m.