# NOT RUN {
aceEditor(
outputId = "myEditor",
value = "Initial text for editor here",
mode = "r",
theme = "ambiance"
)
aceEditor(
outputId = "myCodeEditor",
value = "# Enter code",
mode = "r",
hotkeys = list(
helpKey = "F1",
runKey = list(
win = "Ctrl-R|Ctrl-Shift-Enter",
mac = "CMD-ENTER|CMD-SHIFT-ENTER"
)
),
wordWrap = TRUE, debounce = 10
)
aceEditor(
outputId = "mySmartEditor",
value = "plot(wt ~ mpg, data = mtcars)",
mode = "r",
autoComplete = "live",
autoCompleteList = list(mtcars = colnames(mtcars))
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab