check_pkg: check_pkg

View source: R/pkg-utils.R

check_pkgR Documentation

check_pkg

Description

Check whether the input packages are installed

Usage

check_pkg(pkg, reason = NULL, ...)

Arguments

pkg

package names

reason

the reason to check the pkg. If NULL, it will set the reason to the parent call.

...

additional parameters that passed to rlang::check_installed()

Details

This function check whether the input packages are installed. If not, it asks the user whether to install the missing packages.

Value

see also check_installed

Author(s)

Guangchuang Yu


YuLab-SMU/yulab.utils documentation built on April 14, 2025, 1:54 p.m.