Export student-facing feedback to per-repository markdown files
Source:R/project.R
export_comments.RdWrites each student repository's public feedback to
<comments>/<repo>.md under the project root, using the project's
configured comments directory (comments/ when none is configured; it is
created when missing). Each graded question appears as a heading, in
template order, followed by a bulleted markdown list of its selected
rubric item descriptions and its public comment. Document-scope
questions (feedback about the document as a whole) come first, ahead of
the per-question sections. Private comments are never exported, and a
repository with no public feedback gets no file.
Details
Item groups never change the default output: selected items are listed
as they are and a group's floor or ceiling is never mentioned, in keeping
with the rule that student-facing text does not describe grading
mechanics. With group_headings = TRUE the selected items that belong to
a group are written under a ### <label> subheading beneath the
question's heading, in display order; the question's ungrouped items and
its public comment come first, without a subheading, and a group with no
selected items gets none. Group labels then reach students, so choose
them accordingly.