Represents the grading state for a question including current score, total possible points, and grading configuration options.
Usage
markermd_grade_state(
current_score = 0,
total_score = 0,
grading_mode = "positive",
bound_above_zero = TRUE,
bound_below_max = TRUE,
optional = FALSE
)Arguments
- current_score
Numeric. Current points awarded
- total_score
Numeric. Maximum possible points
- grading_mode
Character. Either "positive" or "negative" grading
- bound_above_zero
Logical. Whether to enforce score >= 0
- bound_below_max
Logical. Whether to enforce score <= maximum
- optional
Logical. Whether the question is optional: a submission with nothing recorded for it counts as graded and scores as if no rubric item were selected (its starting score, 0 in positive mode or
total_scorein negative mode), instead of being left ungraded. Meant for a document-level question that only applies to some submissions.