This function returns a list that can be used as an input for the argument
reindention
of the function tidyverse_style()
. It features sensible
defaults, so the user can specify deviations from them conveniently without
the need of setting all arguments explicitly.
specify_reindention(regex_pattern = regex_none(), indention = 0,
comments_only = TRUE)tidyverse_reindention()
Character vector with regular expression patterns that are to be re-indented with spaces.
The indention tokens should have if they match
regex_pattern
.
Whether the regex_reindention_pattern
should only be
matched against comments or against all tokens. Mainly added for
performance.
specify_reindention
: Allows to specify which tokens are reindented and
how.
tidyverse_reindention
: Simple forwarder to
specify_reindention
with reindention according to the tidyverse style
guide.