A second editor in RStudio
shinyMonacoEditor makes available some features in addition to the built-ins features of the Monaco editor, it is not an essential tool for code development.
Recently I developed two HTML widgets which also are code editors: aceEditor and monaco. They have less features than
shinyMonacoEditor, because you cannot communicate with R from a HTML widget, and you cannot run a system command. For example,
shinyMonacoEditor allows to reformat a
C++ file with the help of the command line utility
clang-format. Again, this is just a proof of concept; if you want a tool to prettify some code, I would rather recommend my package prettifyAddins (available on CRAN).
The HTML widgets are less funny but more practical. They really provide a second editor in RStudio: you can open them in the viewer pane and they don’t lock RStudio, contrary to a Shiny app.
aceEditor last week but there is a more recent version in my Github repo. If you want to try it now, run:
The Ace diff editor is implemented in this version. It allows to highlight the differences between two files (if you want a tool to also merge two files, give a try to my other package shinyMergely, available on CRAN).