An R Autograding Extension for Otter-Grader


[Up] [Top]

Documentation for package ‘ottr’ version 1.2.0

Help Pages

check Run the test cases in a test file
execute_script Generate an environment from an R script
export Export a JupyterNotebook to a zip file
grade_script Grade an R script against a series of test files
GradingResults An R6 class representing a collection of test case results
load_test_cases Load test cases from a test file
make_secret Generate a random string of characters
run_autograder Grade an R script against test files in a directory
TestCase An R6 class representing a test case
TestCaseResult An R6 representing the results of running a test case
TestFileResult An R6 class representing a collection of test case results
update_ast_check_calls Collect results of calls to 'ottr::check' in an AST
valid_expr_chars A string containing characters that can be made into a valid variable name. Does not include any digits because randomly sampling with them included could result in an invalid variable name.
valid_syntax Check whether a string is valid R code