| ensure_pkg | R Documentation |
Ensure that a required package is available
ensure_pkg(pkg)
pkg |
Character string with the package name |
Invisible TRUE (used only for its side-effect)
The function stops with an informative error if the required package is not installed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.