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