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

style_roxygen_code_example_one

Style a roxygen code example with exactly one @example or @exampleIf


Description

Style a roxygen code example with exactly one @example or @exampleIf

Usage

style_roxygen_code_example_one(example_one, transformers, base_indention)

Arguments

example_one

A character vector, one element per line, that contains in total at most one example tag.

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'.


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.