Description Usage Arguments Details Value Examples
This function reliably tries to attach a package and silently returns FALSE if the package cannot be attached. Unlike require, it does not generate an error if the package exists but cannot be attached (e.g., because of version requirements).
1 | tryRequire(what)
|
what |
The name of the package |
The function intends to run silently, but this is not uniformly possible, since the quietly = TRUE option to require() does not suppress messages from other packages attached through dependencies in this package.
The value is not returned invisibly, as it would be with require().
TRUE if the package was successfully attached and FALSE otherwise.
1 | tryRequire(RSPerl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.