extractPointValue: Extract point value from criterion message.

View source: R/grade.r

extractPointValueR Documentation

Extract point value from criterion message.

Description

Internal helper function that extracts point values from criterion labels formatted as "[2pts]" or "(2pts)".

Usage

extractPointValue(criterion_msg)

Arguments

criterion_msg

the criterion message that may contain point specification

Value

A list with components: pts (numeric) and cleaned_msg (string without point spec)


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