assert_installed | R Documentation |
Assert that packages are installed without attaching them
assert_installed(...)
... |
Unquoted package names separated by comma |
On success invisibly returns TRUE, otherwise an error.
assert_installed(ggplot2)
testthat::expect_error(assert_installed(ggplot2, ggplot3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.