View source: R/inline_editor.R
Creates an inline code editor using the shinyAce package that allows users to dynamically enter and evaluate R code and see either a plot or textual output.
1 2 | inlineEditor(type = c("plot", "text"), codeWidth = 8,
initialVal = "", height = 300)
|
type |
Either |
codeWidth |
Out of 12, how many columns should be occupied by the code, the rest will be used for the output. |
initialVal |
The initial text to put in the editor. |
height |
The height of the editor (in pixels). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.