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

make_transformer

Closure to return a transformer function


Description

This function takes a list of transformer functions as input and returns a function that can be applied to character strings that should be transformed.

Usage

make_transformer(
  transformers,
  include_roxygen_examples,
  base_indention,
  warn_empty = TRUE
)

Arguments

transformers

A list of transformer functions that operate on flat parse tables.

include_roxygen_examples

Whether or not to style code in roxygen examples.

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.


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.