Ace Code Editor in Shiny (shinyAce)
The Ace code editor is an elegant, full-featured, browser-based code editor used in such products as RStudio’s IDE. We’re announcing a new R package called shinyAce (now available on CRAN) which integrates the Ace editor into the Shiny web framework.
update function that allows you to update the text (or mode/theme) once the editor has already been created.
See the GitHub page to download the code, view installation instructions, or see details on the examples that come with the package. These examples showe how to create Shiny applications that use shinyAce to allow users to edit and run R code, R Markdown, or even another Shiny user interface.
To install the package:
# Download and install shinyAce install.packages('shinyAce')
To run an example of shinyAce that features all the available modes and themes on your own machine now:
# Install and load Shiny and ShinyAce install.packages('shinyAce') library(shiny) runApp(system.file("examples/01-basic", package="shinyAce"))