Skip to contents

Reads datasets already written in out_dir and reconstructs a manifest.rds with rich metadata (model, baseline, effects, etc.).

Usage

rebuild_manifest(
  base_recipe,
  vary,
  out_dir,
  filename_template = "sc{scenario_id}_r{rep}"
)

Arguments

base_recipe

A validated recipe list (use validate_recipe() if needed).

vary

Named list used originally in generate_recipe_sets() for the grid.

out_dir

Directory that already contains the datasets.

filename_template

The same template you used when writing files (default "sc{scenario_id}_r{rep}"). It may also include tokens for dotted paths from vary.

Value

The rebuilt manifest (also writes manifest.rds in out_dir).