aceDiffEditor {aceEditor} | R Documentation |
Ace diff editor
Description
Open the Ace diff editor.
Usage
aceDiffEditor(
file1,
file2,
mode = NULL,
theme = NULL,
fontSize = 14,
tabSize = NULL,
autoCompletion = TRUE,
snippets = FALSE,
width = NULL,
height = NULL,
elementId = NULL
)
Arguments
file1 , file2 |
paths to files |
mode |
the language of the files; if |
theme |
the theme of the editor; if |
fontSize |
font size |
tabSize |
number of spaces for the indentation (usually |
autoCompletion |
logical, whether to enable the auto completion |
snippets |
logical, whether to enable the snippets (for example, there
is a snippet for |
width , height |
dimensions; the default values are nice for usage in the RStudio viewer pane |
elementId |
a HTML id for the container; this is useless for common usage |
Note
The diff editor does not correctly reacts when one resizes the RStudio viewer pane. You have to resize it before opening the diff editor.
Examples
file <- system.file("htmlwidgets", "aceEditor.css", package = "aceEditor")
aceDiffEditor(file, file)