Merge Code Versions using Shiny and CodeMirror 5 MergeView
Source:R/codemirror5-diff.R
merge_code.Rd
This function launches a Shiny gadget to visually merge two versions of code/YAML.
Usage
merge_code(
value,
new,
old = NULL,
lhs = "original",
rhs = "suggested",
accept = "Save",
rhs_accept = "Accept all",
mode = "r"
)
Arguments
- value
the content for the central panel.
- new
character vector of code lines. Content of the changed / RHS version.
- old
character vector of code lines. Content of the old / LHS version.
- lhs
the title of the LHS
- rhs
the title of the RHS
- accept
the button text for the LHS
- rhs_accept
the button text for the RHS
- mode
the language mode