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 |
f <- function() fail_on_missing_package("foobar")
try(f())
g <- function() fail_on_missing_package("stats")
g()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.