Skip to contents

Returns per-repository, per-question scores as snapshot_diff() and the History tab compare them: for a snapshot, the scores cached when it was taken; for "current", the live database scored with the same code as export_scores() and the Assignments table.

Usage

snapshot_scores(id = "current", project = ".")

Arguments

id

A snapshot reference (see snapshot_info()), or "current" for the live state.

project

Path to the project directory. Defaults to the working directory.

Value

A data frame with assignment_repo, question_name and score, including a "(total)" row per repository (NA until every question is graded).

Examples

if (FALSE) { # \dontrun{
snapshot_scores("latest", project = "hw01")
snapshot_scores(project = "hw01")
} # }