extractCriterionLabel: Extract criterion label from assertion.

View source: R/grade.r

extractCriterionLabelR Documentation

Extract criterion label from assertion.

Description

Internal helper function that extracts custom labels from test expectations.

Usage

extractCriterionLabel(assertion, default_label)

Arguments

assertion

the expectation assertion object

default_label

fallback label if none found

Value

A string with the criterion label


gradeR documentation built on Jan. 20, 2026, 1:06 a.m.