Description Usage Arguments Value
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)'.
1 2 |
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) |
A list in the format that tutor requires to display student feedback.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.