Writes a snapshot's parts as the project's exchange files, validated by the
same readers the imports use: markermd-template.yaml (when the snapshot
holds a template), markermd-rubric.yaml and markermd-marks.yaml, plus a
snapshot.yaml sidecar with the snapshot's fields and notes, so the
directory stands alone as an archive. The rubric file drops the item and
group ids a snapshot carries internally, so it validates against the
published schema.
Usage
snapshot_export(id, dir, project = ".")
Arguments
- id
The snapshot: its id, a unique prefix of it, a unique label,
"latest", or a non-positive integer counting back from the latest
(0 is the latest, -1 the one before it).
- dir
Output directory, created when missing.
- project
Path to the project directory. Defaults to the working directory.
Value
The written file paths, invisibly.
Examples
if (FALSE) { # \dontrun{
snapshot_export("Before review", "backups/before-review", project = "hw01")
} # }