Skip to main content

R Output

Component for rendering R output inside an ISLE lesson.

Options

  • code | string: R code used to evaluate. Default: ''.
  • libraries | array: R libraries that should be loaded automatically when the input code is executed. Default: [].
  • prependCode | (string|array): R code (or array of code blocks) to be prepended to the code stored in code when evaluating. Default: ''.
  • onPlots | function: callback invoked with any generated plots. Default: onPlots() {}.
  • onResult | function: callback invoked with error (null if operation was successful) and result holding R output. Default: onResult() {}.

Examples

Live Editor
Result
ReferenceError: Provider is not defined