inlineEditor: Inline Code Editor Widget

Description Usage Arguments

View source: R/inline_editor.R

Description

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.

Usage

1
2
inlineEditor(type = c("plot", "text"), codeWidth = 8,
  initialVal = "", height = 300)

Arguments

type

Either 'plot' or 'text', depending on what you want to output.

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).


rstudio/rmdexamples documentation built on Dec. 24, 2019, 8:05 p.m.