powered by
Assert a package is installed.
assert_is_installed(pkg)
An error if pkg is not installed or invisible pkg if it is.
pkg
Character vector giving the name of a package.
assert_is_installed("base") if (FALSE) { try(assert_is_installed("bad")) }
Run the code above in your browser using DataLab