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 inputcodeis executed. Default:[]. - prependCode |
(string|array): R code (orarrayof code blocks) to be prepended to the code stored incodewhen evaluating. Default:''. - onPlots |
function: callback invoked with any generated plots. Default:onPlots() {}. - onResult |
function: callback invoked witherror(nullif operation was successful) andresultholding R output. Default:onResult() {}.
Examples
- Minimal
- Multiline
- Loading Data
- Using Libraries
Live Editor
Result
ReferenceError: Provider is not defined