powered by
Open the Ace diff editor.
aceDiffEditor( file1, file2, mode = NULL, theme = NULL, fontSize = 14, tabSize = NULL, autoCompletion = TRUE, snippets = FALSE, width = NULL, height = NULL, elementId = NULL )
paths to files
the language of the files; if NULL, the mode is guessed from the extension of the first file; run getAceModes to get the list of available modes
NULL
getAceModes
the theme of the editor; if NULL, the theme is set to the theme currently used in RStudio; run getAceThemes to get the list of available themes
getAceThemes
font size
number of spaces for the indentation (usually 2 or 4); if NULL, it is set to the one used in RStudio
2
4
logical, whether to enable the auto completion
logical, whether to enable the snippets (for example, there is a snippet for switch in JavaScript)
switch
dimensions; the default values are nice for usage in the RStudio viewer pane
a HTML id for the container; this is useless for common usage
# NOT RUN { file <- system.file("htmlwidgets", "aceEditor.css", package = "aceEditor") aceDiffEditor(file, file) # }
Run the code above in your browser using DataLab