Learn R Programming

learnr (version 0.10.1)

tutorial_options: Set tutorial options

Description

Set various tutorial options that control the display and evaluation of exercises.

Usage

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
)

Arguments

exercise.cap

Caption for exercise chunk (defaults to "Code").

exercise.eval

Whether to pre-evaluate the exercise so the reader can see some default output (defaults to FALSE).

exercise.timelimit

Number of seconds to limit execution time to (defaults to 30).

exercise.lines

Lines of code for exercise editor (defaults to the number of lines in the code chunk).

exercise.checker

Function used to check exercise answers.

exercise.completion

Use code completion in exercise editors.

exercise.diagnostics

Show diagnostics in exercise editors.

exercise.startover

Show "Start Over" button on exercise.