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

default_style_guide_attributes

Initialize default style guide attributes


Description

This function initializes and removes various variables from the parse table.

Usage

default_style_guide_attributes(pd_flat)

Arguments

pd_flat

A parse table.

Examples

withr::with_options(
  list(styler.cache_name = NULL), # temporarily deactivate cache
  {
    string_to_format <- "call( 3)"
    pd <- styler:::compute_parse_data_nested(string_to_format)
    styler:::pre_visit(pd, c(default_style_guide_attributes))
  }
)

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.