Learn R Programming

ottr (version 1.5.3)

grade_script: Grade an R script against a series of test files

Description

Execute a script, parse check outputs, and run additional tests specified by the glob pattern tests_glob on the test environment.

Usage

grade_script(script_path, tests_glob, ignore_errors)

Value

The GradingResults object after executing tests referenced in the script and those specified by tests_glob

Arguments

script_path

The path to the script

tests_glob

The pattern to search for extra tests

ignore_errors

Whether to ignore errors thrown while executing the script