Learn R Programming

yulab.utils (version 0.1.7)

check_pkg: check_pkg

Description

Check whether the input packages are installed

Usage

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

Value

see also check_installed

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()

Author

Guangchuang Yu

Details

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