Set various tutorial options that control the display and evaluation of exercises.
tutorial_options(
exercise.cap = "Code",
exercise.eval = FALSE,
exercise.timelimit = 30,
exercise.lines = NULL,
exercise.checker = NULL,
exercise.completion = TRUE,
exercise.diagnostics = TRUE,
exercise.startover = TRUE
)
Caption for exercise chunk (defaults to "Code")
.
Whether to pre-evaluate the exercise so the reader can
see some default output (defaults to FALSE
).
Number of seconds to limit execution time to
(defaults to 30
).
Lines of code for exercise editor (defaults to the number of lines in the code chunk).
Function used to check exercise answers.
Use code completion in exercise editors.
Show diagnostics in exercise editors.
Show "Start Over" button on exercise.