pipe_checker: magrader interface to tutor

Description Usage Arguments Value

Description

An exercise checker function to use with the R Markdown tutor package. This function does nothing but check a chunk. It is designed to be used by tutor; tutor will call the function when necessary and supply all of the inputs. To enable the function with tutor, set the following option in a code chunk, 'tutor_options(exercise.checker = checker)'.

Usage

1
2
pipe_checker(label = NULL, user_code = NULL, check_code = NULL,
  envir_result = NULL, evaluate_result = NULL, ...)

Arguments

label

The label of the code chunk to check

user_code

The code provided by the student in the exercise, as a character string

check_code

The code supplied by the author in the '-check' or '-code-check' chunks, as a character string

envir_result

The R environment after executing the chunk.

evaluate_result

The return value from the 'evaluate::evaluate' function.

...

Unused (include for compatibility with parameters to be added in the future)

Value

A list in the format that tutor requires to display student feedback.


garrettgman/magrader documentation built on May 16, 2019, 5:39 p.m.