check_packages: 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")
Value
Invisible TRUE if all packages are available, throws error otherwise
Arguments
- packages
Character vector of package names
- reason
Reason why these packages are needed