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

test_transformer

Transforming test input with a transformer function


Description

These functions can be used as inputs for test_collection() and transform_and_check().

Usage

style_empty(text, base_indention = 0)

style_op(text, base_indention = 0)

Arguments

text

A character vector to transform.

Details

As inputs for test_collection(), we can also use top-level functions such as style_text().

Functions

  • style_empty: Nest and unnest text without applying any transformations but remove EOL spaces and indention due to the way the serialization is set up.

  • style_op: Transformations for indention based on operators


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.