check_installed {martini} | R Documentation |
Checks if a package is installed, launches an error if it is not.
check_installed(pkgs, fn = "This function")
pkgs |
Character vector with the names of the packages. |
fn |
Function calling the check. |
The package is loaded into the namespace.
martini:::check_installed(c("martini")) ## Not run: martini:::check_installed("martinid")