Extend Item
extend.RdAdd specific attribute(s) with fine tuning.
Usage
extend(config, item = get_context(), ...)Details
This function is a wrapper around design() to provide a comprehensive
layered syntax.
It only understands the attribute instruction inside ...:
attribute = c(name = "note", type = "character")
Anything else will be filtered.
When item is set in the parent frame, then the parameter can be skipped
in the function call.
Examples
if (FALSE) { # \dontrun{
# create config
config <- design(project = "test",
item = "foo")
# set item (to skip it in following calls)
item <- "foo"
# extend
config |>
extend(attribute = c(name = "date", type = "Date", default = "Sys.Date()"))
# is same as
config <- design(project = "test",
item = "foo",
attribute = c(name = "date", type = "Date", default = "Sys.Date()"))
} # }