Contents
ResourceSpecSet
ResourceSpec set
List-like container for collections of specification objects, normally
ResourceSpec. Membership is not type-checked here.
Usage
ResourceSpecSet(...)S3 method for class 'ResourceSpecSet'
c(..., recursive = FALSE)S3 method for class 'ResourceSpecSet'
as.list(x, ...)S3 method for class 'ResourceSpecSet'
x[i, ...]Arguments
| Argument | Description |
|---|---|
... | Zero or more spec objects, plain lists of them, and/or other ResourceSpecSet objects. Nested lists and sets are flattened to one level; names are dropped. |
recursive | Logical scalar, default FALSE. Unused; present for compatibility with the base::c() generic. |
x | A ResourceSpecSet. |
i | Integer or logical vector. Index passed to list [. |
Value
A ResourceSpecSet: a plain list of the flattened items carrying class
"ResourceSpecSet". With no arguments, an empty set.
Examples
# Specs normally come from a catalog's `$get(..., .execute = FALSE)`.
specs <- ResourceSpecSet()
length(specs)See Also
Other engine-core:
ExecutionEngine,
ExecutionScheduler,
ResourceResolver(),
ResourceSpec,
Rule,
RuleRegistry,
TaskExecutor(),
execute(),
resources.factory,
resources.type