Concentrate newlines or spaces in a string
add_line_col_to_wrapped_expr
Adds line and col information to an expression from its child
Add information about previous / next token to each terminal
Apply transformers to a parse table
Add column pos_id
and short
Check token validity
Make sure all supplied file types are allowed
Compute the indices that need indention
Assert text to be of positive length and replace it with the empty
string otherwise.
compute_parse_data_nested
Obtain a nested parse table from a character vector
Check whether a roundtrip verification can be carried out
Apply reference indention to tokens
Convert a character vector to an ordered factor
Applying reference indention of a target token
Propagate context to terminals
Communicate the summary of styling
context_towards_terminals
Update the a parse table given outer context
Create a tree from text
Communicate a warning if necessary
default_style_guide_attributes
Initialize default style guide attributes
Copy a file to a temporary directory
create_node_from_nested_root
Convert a nested tibble into a node tree
Create valid pos_ids if possible
Create node from nested parse data
Extract terminal tokens
Choose the indention method for the tokens
Find the block to which a token belongs
Get chunk pattern
Combine child and internal child
Obtain robust parse data
Enhance the mapping of text to the token "SPECIAL"
Bind a parse table with one of its children
Invoke a system command
Enrich flattened parse table
Construct *-out.R from a *-in.R
Construct paths of a tree object given the paths of *-in.R files
Identify chunks within Rmd contents
Initialize attributes
expressions_are_identical
Check whether two expressions are identical
Closure to return a transformer function
Find the index of the last comment in the sequence of comments-only tokens
after the token that has position pos
in pd
.
Map the file type to a corresponding regular expression
Flatten a parse table
Relocate the expressions containing the token EQ_ASSIGN
within the nested
parse table
Relocate all assignment expressions that contain EQ_ASSIGN
within a nest
Construct an object of class vertical
start_comments_with_space
Start comments with a space
contains_else_expr_that_needs_braces
Check whether an else expression needs braces
Prettify arbitrary R code
Create a style guide
Create the path to a test that file
The tidyverse style
Verify the text of strings
Verify the styling
Find the index of the next non-comment in a parse table
Check whether indention is needed
Nest a flat parse table
parse_transform_serialize
Parse, transform and serialize text
Relocate an assignment expression
Check whether a parse table corresponds to a certain expression
Get the start right
Check whether a parse table is a multi-line token
Find legit starting value for a new positional id
Specify spacing around math tokens
Set the write_tree argument
Check whether indention is needed
set_line_break_if_call_is_multi_line
Set line break for multi-line function calls
serialize_parse_data_flattened
Serialize flattened parse data
set_and_assert_arg_filetype
Set the file type argument
Prettify R source code
Run a collection of tests
style_space_around_math_token
Style spacing around math tokens
Generate a comprehensive collection test cases for comment / insertion
interaction
Test consist of if / if-else / if-else-if-else cases, paired with various
line-break and comment configurations. Used for internal testing.
Transform files with transformer functions
lookup which new tokens were created from "SPECIAL"
Lookup all tokens that have a unique token-text mapping
Transforming test input with a transformer function
Transform Rmd contents
Style a file as if it was an .R file
wrap_if_else_multi_line_in_curly
Wrap if-else statement in curly braces
Wrap a sub-expression in curly braces
Unindent a child
Repeat elements of a character vector times
times and collapse it
Wrap an expression in curly braces
Helper for setting spaces
Wrap an expression into an expression
Unindent a child if necessary
style_space_around_math_token_one
Set spacing of token to a certain level
Create a terminal token
Style .R
and/or .Rmd
files
Flatten some token in the nested parse table based on operators
Style guides
Obtain token table from text
Flatten one level of nesting with its child
Transform a file an check the result
set_space_between_eq_sub_and_comma
Set space between EQ_SUB and "','"
Style a string
Set space between levels of nesting
Update indention information of parse data
Update the indention reference
Update the newlines attribute
Prettify R code in current working directory
Set the multi-line column
Validate sequence of new position ids
Set indention of tokens that match regex
Transform a flat parse table with a list of transformers
Non-invasive pretty printing of R code
Specify what is re-indented how
Stylers for RStudio Addins
Transform code from R or Rmd files
Transform a file and output a customized message
Visit'em all