resources.factory

Resource Specification Factory

Description

Resource specification factory

Usage

resources.factory

Format

Named list of constructor functions returning ResourceSpec.

Details

Factory constructors for creating ResourceSpec objects with consistent parameter naming, metadata handling, and serializer defaults.

Every constructor accepts:

  • identity parameters for the resource type;

  • .meta for runtime metadata/capabilities that do not affect identity;

  • .serializer for persistence strategy.

The default serializer is resources.serializer$rds, except gwas.sumstats, which defaults to resources.serializer$data.fst.