targets.Rd
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.
targets()
target()
targets(...)
templates or character vectors
target
tpl <- template(.id = "foo", {}) tpl2 <- template(x, .id = function(x) x, {}) targets( tpl, target(tpl2, x = "bar") ) #> [1] "[id=\"foo\"], [id=\"bar\"]"