Man pages for datacamp/testwhat
Easily write submission correctness tests for R exercises

build_pdBuild ParseData from string representing code
check_codeTest the student's code as text
check_controlCheck whether student coded a control statement correctly
check_errorCheck whether the student's submission threw an error.
check_functionCheck whether a student correctly called a function/operator
check_function_resultCheck the result of a function call/operation
check_fun_defCheck whether the student defined a function correctly
check_ggplotTest ggplot call
check_libraryCheck whether the library function was called correctly
check_logicCombine tests
check_outputCheck whether the student printed something to the console
check_predefined_objectsTest predefined R objects
check_thatExpectation wrapper
check_wdCheck whether a file exists
compareCheck if object is true, false or >=
exGet the main state
get_num_hitsGet the number of hits for a series of regexes
is_equalCheck equality of two objects
overrideFunctions to override solution code (and parse data) and...
reexportsObjects exported from other packages
rstudioTest R Markdown file
run_until_failRun SCT until it fails
s3defsS3 definitions
setup_stateSet up state for local experimentation.
statetestwhat states.
success_msgDefine the success message
test_chunk_optionsCheck whether the student defined the correct chunk options...
test_exerciseRun all tests for an exercise
test_exprCheck the result, output or errors thrown by an expression
test_mcTest a multiple choice exercise
test_objectCheck R object existence and value
test_pipeCheck whether a student used the pipe operator sufficiently...
test_propsCheck whether the student used the correct properties (ggvis...
test_rmd_groupTest a single R Markdown file group (R Markdown exercises)
test_textTest inline text and formatting (Markdown)
testwhat_learnrA checker function to use with learnr
test_yaml_headerCheck yaml header (Markdown)
twtw singleton object to access data across SCT chains.
datacamp/testwhat documentation built on June 23, 2018, 10:03 a.m.