run_autograder: Grade an R script against test files in a directory

View source: R/run_autograder.R

run_autograderR Documentation

Grade an R script against test files in a directory

Description

Run autograder in a Gradescope container and return the results as a properly-formatted JSON string.

Usage

run_autograder(script_path, ignore_errors, test_dir)

Arguments

script_path

The path to the script

ignore_errors

Whether to ignore errors thrown while executing the script

test_dir

A directory of tests to glob from

Value

The JSON string

Examples

## Not run: 
run_autograder("hw01.R", "ABC123", TRUE, "tests")

## End(Not run)

ucbds-infra/ottr documentation built on Feb. 24, 2024, 2:31 a.m.