Skip to contents

Recording

Capture objects from R scripts or interactive sessions.

record_script()
Record all objects produced by sourcing an R script
record_start()
Start recording analytical objects
record_stop()
Stop recording and summarise captured objects
get_records()
Retrieve recorded objects
source_student_file()
Source a student submission and return recorded objects
grab()
Wrap a named global object into a robjgrader_records list

Validation

Validate recorded objects against expectations.

validate()
Validate a recorded object
validate_text()
Validate a student text answer using an LLM
split_student_text()
Split a student text submission into sections
find_student_text()
Find and read a student text submission automatically
read_student_text()
Read a student text submission

Autograder

Run test cases and produce Gradescope-compatible output.

run_autograder()
Run autograder test cases and write Gradescope-compatible JSON
ag_submission_test()
Submission test: always returns "SUCCESS"
result_to_outcome()
Convert a validate() result to an autograder outcome string