powered by
The function checks whether a package is installed and returns an error or FALSE if not available. If a package search is provided, the function will check whether a minimum version of a package is required.
FALSE
assert_package(pkg, fn = NULL, pkg_search = "gtsummary", boolean = FALSE)
Package required
Calling function from the user perspective
the package the function will search for a minimum required version from.
logical indicating whether to return a TRUE/FALSE, rather than error when package/package version not available.
Returns NULL or not at all.
# NOT RUN { assert_package("gt", boolean = TRUE) # }
Run the code above in your browser using DataLab