Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

style_space_around_token

Set spacing of token to a certain level


Description

Set the spacing of all tokens in pd_flat to level if strict = TRUE or to at least to level if strict = FALSE.

Usage

style_space_around_token(
  pd_flat,
  strict,
  tokens,
  level_before,
  level_after = level_before
)

Arguments

pd_flat

A nest or a flat parse table.

strict

Whether the rules should be applied strictly or not.

tokens

Character vector with tokens that should be styled.

level_before, level_after

Scalar indicating the amount of spaces that should be inserted around the tokens on the left and right position respectively.


styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.