check_installed {martini} | R Documentation |
Checks if a package is installed, launches an error if it is not.
check_installed(pkg, fn = "this function")
pkg |
Name of the package. |
fn |
Function calling the check. |
The package is loaded into the namespace.
martini:::check_installed("martini") ## Not run: martini:::check_installed("martinid")