Execute the R code provided as input and return a string
containing all of its output. If the code prints output, say with
cat
, e.g., as in "cat(5);cat(6)"
, then that output is
returned as single collapsed string. If the code just returns a value,
e.g., "5"
, then this value will be converted to a collapsed string
and returned.
1 | r.exec(code)
|
code |
the R code |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.