check_packages: Check if required packages are installed with informative...

View source: R/error-utils.r

check_packagesR Documentation

Check if required packages are installed with informative errors

Description

Enhanced package checking with better error messages and validation

Usage

check_packages(packages, reason = "for this functionality")

check_pkg(packages, reason = "for this functionality")

Arguments

packages

Character vector of package names

reason

Reason why these packages are needed

Value

Invisible TRUE if all packages are available, throws error otherwise

See Also

Other validate-utils: check_directory(), check_file(), check_input(), check_range()


yulab.utils documentation built on Feb. 5, 2026, 9:10 a.m.