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

parse_transform_serialize_r

Parse, transform and serialize text


Description

Wrapper function for the common three operations.

Usage

parse_transform_serialize_r(
  text,
  transformers,
  base_indention,
  warn_empty = TRUE
)

Arguments

text

The text to parse.

transformers

Passed to cache_make_key() to generate a key.

base_indention

Integer scalar indicating by how many spaces the whole output text should be indented. Note that this is not the same as splitting by line and add a base_indention spaces before the code in the case multi-line strings are present. See 'Examples'.

warn_empty

Whether or not a warning should be displayed when text does not contain any tokens.

See Also


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.