fail_on_missing_package | R Documentation |
Check if R package can be loaded and fails loudly otherwise
fail_on_missing_package(pkg, min_version)
pkg |
string |
min_version |
optional minimum version needed |
## Not run:
f <- function() fail_on_missing_package('foobar')
f()
g <- function() fail_on_missing_package('stats')
g()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.