Skip to contents

Serializes grading marks (per-repository rubric item selections plus optional public and private comments) to a human-readable, schema-validatable YAML file. Each question entry is declarative: the listed rubric item descriptions are the selected items, and items: [] states that no items apply.

Usage

write_marks_yaml(marks, path)

Arguments

marks

A marks list as returned by read_marks_yaml() or built by marks_export(): format_version plus a repos list whose entries have name and questions, each question with name, items (a character vector of rubric item descriptions) and optionally comment / private_comment.

path

Output file path (.yaml).

Value

The output path, invisibly.