tutorial_options: Set tutorial options

Description Usage Arguments

View source: R/options.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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.


learnr documentation built on March 26, 2020, 7:45 p.m.