Description Usage Arguments Value See Also Examples
This function can be useful in writing package functions that use functions from packages that you "suggest". It asserts that these packages are available, and throws an informative error for those packages that are not.
1 | assert_packages(packages, ...)
|
packages |
|
... |
|
logical
indicating success
1 2 3 4 5 6 7 8 9 | ## Not run:
# put packages in a character vector
assert_packages(c("base", "utils"))
# or by themselves
assert_packages("base", "utils")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.