set_regex_indention | R Documentation |
Force the level of indention of tokens whose text matches a regular expression pattern to be a certain amount of spaces. The rule is only active for the first tokens on a line.
set_regex_indention(
flattened_pd,
pattern,
target_indention = 0L,
comments_only = TRUE
)
flattened_pd |
A flattened parse table. |
pattern |
A character with regular expressions to match against the
token in |
target_indention |
The desired level of indention of the tokens that
match |
comments_only |
Boolean indicating whether only comments should be checked or all tokens. |
A flattened parse table with indention set to target_indention
for
the tokens that match regex.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.