desc_get_field | R Documentation |
desc_get_list()
parses a comma separated list into a character
vector.
desc_get_field(
key,
default = stop("Field '", key, "' not found"),
trim_ws = TRUE,
squish_ws = trim_ws,
file = "."
)
desc_get_or_fail(keys, file = ".")
desc_get_list(
key,
default = stop("Field '", key, "' not found"),
sep = ",",
trim_ws = TRUE,
squish_ws = trim_ws,
file = "."
)
key |
The field to query. |
default |
Value to return if |
trim_ws |
Whether to trim leading and trailing whitespace
from the value. Defaults to |
squish_ws |
Whether to reduce repeated whitespace in the value.
Defaults to |
file |
DESCRIPTION file to use. By default the DESCRIPTION file of the current package (i.e. the package the working directory is part of) is used. |
keys |
Character vector of fields to get. |
sep |
Separator string for |
Character string, the value of key
, or default
if key
is not found and default
is specified.
Other simple queries:
desc_del()
,
desc_fields()
,
desc_get()
,
desc_has_fields()
,
desc_set()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.