PolyGenius
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

ArgumentDescription
...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.
recursiveLogical scalar, default FALSE. Unused; present for compatibility with the base::c() generic.
xA ResourceSpecSet.
iInteger 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

Aliases: ResourceSpecSet, c.ResourceSpecSet, as.list.ResourceSpecSet, [.ResourceSpecSet