ResourceSpec

Resource Specification

Description

Resource Specification

Resource Specification

Details

Resource specification

Lightweight resource descriptors used by the reactive execution framework. Resource identity is defined by type + params. Runtime capabilities and constraints are stored in meta and do not affect identity.

Public fields

type

Character. Resource type.

params

Named list. Identity parameters.

meta

Named list. Capabilities and runtime metadata.

serializer

Named list. Serialization strategy (name, save, load, exists, data.path).

id

Character. Resource identifier (hash of type + params).

Methods

Public methods


Method new()

Create a ResourceSpec

Usage
ResourceSpec$new(
  type,
  ...,
  .meta = NULL,
  .serializer = resources.serializer$rds
)
Arguments
type

Character; resource type

Named identity parameters

.meta

Named list of runtime metadata/capabilities

.serializer

Character serializer key from resources.serializer.


Method print()

Print resource overview

Usage
ResourceSpec$print(...)
Arguments

Unused

Returns

Invisible self


Method clone()

The objects of this class are cloneable with this method.

Usage
ResourceSpec$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.