update_indention {styler}R Documentation

Update indention information of parse data

Description

Update indention information of parse data

Usage

indent_without_paren_for_while_fun(pd, indent_by)

indent_without_paren_if_else(pd, indent_by)

indent_braces(pd, indent_by)

indent_op(
  pd,
  indent_by,
  token = c(math_token, logical_token, special_token, "PIPE", "LEFT_ASSIGN",
    "EQ_ASSIGN", "'$'", "'~'")
)

indent_eq_sub(pd, indent_by, token = c("EQ_SUB", "EQ_FORMALS"))

indent_without_paren(pd, indent_by = 2)

Arguments

pd

A nested or flat parse table that is already enhanced with line break and space information via default_style_guide_attributes().

indent_by

How many spaces should be added after the token of interest.

token

The token the indention should be based on.

Functions


[Package styler version 1.7.0 Index]