style_roxygen_code_example_one: Style a roxygen code example with exactly one @example or...

View source: R/roxygen-examples.R

style_roxygen_code_example_oneR Documentation

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


r-lib/styler documentation built on Dec. 13, 2024, 5:42 p.m.