Amend Attribute
amend.RdUpdate specific parameter(s) of specific attribute(s).
Usage
amend(config, item = get_context(), ...)Details
The function only understands attribute instruction.
It can handle multiple instructions in ....
Note that it is forbidden to update:
the id attribute (any parameter),
the name and/or type of an attribute.
When item is set in the parent frame, then the attribute can be skipped
in the function call.
Examples
if (FALSE) { # \dontrun{
# create baseline
config <- design(project = "test",
item = "foo") |>
extend(item = "foo",
attribute = c(name = "total", type = "integer"))
# skip item argument (in the following calls)
item <- "foo"
# single instruction
config |>
amend(attribute = c(name = "total", default = 12))
config |>
amend(attribute = c(name = "total", values = "suggest(12)"))
# multiple instructions
config |>
amend(attribute = c(name = "total", values = "suggest(12)"),
attribute = c(name = "total", default = "0"))
} # }