| resolve_channel_args | R Documentation |
Broadcasts global argument values across nirs_channels, applying
per-channel overrides where an argument is supplied as a named list()
keyed by channel name. An argument is treated as per-channel when it is
a list() with at least one named element, with at most one unnamed
element acting as the fallback for unlisted channels (e.g.
width = list(5, q = 7) gives q 7 and every other channel 5). Names
must match nirs_channels or group names; unrecognised names are
warned about and ignored. Any other value (unnamed vectors and fully
unnamed lists) is applied globally to every channel.
resolve_channel_args(
nirs_channels,
group_channels = NULL,
args,
defaults = list(),
choices = list(),
verbose = TRUE,
env = rlang::caller_env()
)
nirs_channels |
Character vector of resolved channel names. |
group_channels |
An optional named list of channel-name vectors
from |
args |
Named list of per-channel-capable arguments. Each element is
either a global value or a per-channel |
defaults |
Named list of fallback values per argument, used when a
per-channel map omits a channel and supplies no unnamed fallback. Only
needed for arguments whose formal default is not |
choices |
Named list of valid values for choice-type arguments
(e.g. |
verbose |
Logical. |
env |
The calling environment, used to report errors as coming
from the user-facing function (e.g. |
A named list with one element per channel (or per group when
group_channels is supplied); each element is a named list of that
channel's resolved argument values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.