reason_pkg_required | R Documentation |
Assembles a prose text containing the reason why a certain R package is required by the fn
of another pkg
. Intended to be used as argument reason
of
rlang::check_installed()
.
reason_pkg_required(
fn = rlang::call_name(rlang::caller_call()),
pkg = utils::packageName(parent.frame())
)
fn |
Name of the function that requires the R package. A character scalar. |
pkg |
Name of the package |
A character scalar.
## Not run:
rlang::check_installed(pkg = "foo",
reason = pal::reason_pkg_required(pkg = "bar",
fn = "serve"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.