Configure how exercises are evaluated. An exercise evaluator is a function taking the arguments described below and returning a promise object which will eventually evaluate the user's code.

future_evaluator(expr, envir, label, timelimit, ...)

Arguments

expr

an (un-evaluated) expression to be evaluated.

envir

the environment in which expr is to be evaluated.

label

the label of the exercise chunk.

timelimit

the configured time limit in seconds.

...

additional parameters for future extensions.

Value

a promise object, or anything that can be cast to a promise object with as.promise().

Functions

  • future_evaluator: evaluate user code in a future() promise. See future::plan() for details on configuring where/how these promises are resolved.

See also

Other exercise configuration: exercise_options()