Given a Dictionary, retrieve objects with provided keys.
dictionary_sugar_get() to retrieve a single object with key
dictionary_sugar_mget() to retrieve a list of objects with keys
dictionary_sugar() is deprecated in favor of
.keys is missing, the dictionary itself is returned.
... must be named and are consumed in the following order:
All arguments whose names match the name of an argument of the constructor
are passed to the
$get() method of the Dictionary for construction.
All arguments whose names match the name of a parameter of the paradox::ParamSet of the
constructed object are set as parameters. If there is no paradox::ParamSet in
step is skipped.
All remaining arguments are assumed to be regular fields of the constructed R6 instance, and
are assigned via
dictionary_sugar_get(dict, .key, ...) dictionary_sugar(dict, .key, ...) dictionary_sugar_mget(dict, .keys, ...)