Check whether the input packages are installed

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

Value

see also check_installed

Details

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

Author

Guangchuang Yu