Enhanced package checking with better error messages and validation

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