Description Usage Arguments Value Examples
The package is downloaded and installed if necessary, and its namespace is loaded. Then
test(ns)
is called with the namespace object, and its value is returned. On exit, the
namespace is unloaded.
1 | call_with_namespace(package, version, test, quiet = TRUE, ...)
|
package |
Package name. |
version |
Version as a character string. |
test |
A one-argument function. |
quiet |
Logical. Try to minimize output from package installation. (Some output comes
from |
... |
Arguments passed to |
The value returned by test
.
1 2 3 4 5 | ## Not run:
can_it_expand_urls <- function (namespace) "expand_urls" %in% names(namespace)
call_with_namespace("longurl", "0.3.0", test = can_it_expand_urls)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.