R/app--allign-at.R
, R/app--set-options.R
, R/rs_align_code.R
align_code.Rd
In selected lines, align code at first occurrence of certain symbol in each row.
rs_align_code_at_pattern(context = rs_get_context())
rs_addins_options(context = rs_get_context())
rs_align_code(
at_symbol,
context = rs_get_context(),
algorithm = c("selection only", "rows in selection")
)
rs_align_code_at_equal(context = rs_get_context())
rs_align_code_at_arrow(context = rs_get_context())
rs_align_code_at_pipe_operator(context = rs_get_context())
rs_align_code_at_hash(context = rs_get_context())
rs_align_code_at_vertical_bar(context = rs_get_context())
(class document_context
)
Object with context of active RStudio document.
(character)
A regular expression that represents symbol treated as reference for
code alignment.
(character
)
One of "selection only"
and "rows in selection"
.
Inspired by https://github.com/seasmith/AlignAssign.