Skip to contents

targets() returns a comma-separated string combining multiple target() calls. If a template is supplied, target() is called on it, otherwise the value is coerced to character and used as-is.

Usage

targets(...)

Arguments

...

templates or character vectors

See also

Examples

tpl <- template(.id = "foo", {})
tpl2 <- template(x, .id = function(x) x, {})
targets(
    tpl,
   target(tpl2, x = "bar")
)
#> [1] "[id=\"foo\"], [id=\"bar\"]"