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