roxy_tag_value | R Documentation |
Extracts the value(s) belonging to the tag_name
s documenting obj_name
from a list of roxy_block
objects.
roxy_tag_value(blocks, obj_name, tag_names, param_name)
blocks |
A list of |
obj_name |
Object name to extract, usually a function name. A character scalar. |
tag_names |
Name(s) of the roxygen2 tag(s) (without the |
param_name |
Parameter name to extract the value from. Only relevant if |
A character vector of the same length as tag_names
.
Other package documentation functions:
enum_fn_param_defaults()
,
fn_param_defaults()
,
roxy_blocks()
,
roxy_obj()
,
roxy_to_md_links()
if (interactive()) {
try(
pal::roxy_blocks(pkg = "viridisLite") |>
pal::roxy_tag_value(obj_name = "viridis",
tag_names = "param",
param_name = "alpha") |>
cat()
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.