style_roxygen_example_snippet {styler}R Documentation

Given a code snippet is dont* or run, style it

Description

Given a code snippet is dont* or run, style it

Usage

style_roxygen_example_snippet(code_snippet, transformers, is_dont)

Arguments

code_snippet

A character vector with code to style.

transformers

A list of named transformer functions

is_dont

Whether the snippet to process is a dontrun, dontshow, donttest segment or not.

Hierarchy

Styling involves splitting roxygen example code into segments, and segments into snippets. This describes the process for input of parse_transform_serialize_roxygen():

Finally, that we have roxygen code snippets that are either dont* or not, we style them in style_roxygen_example_snippet() using parse_transform_serialize_r().


[Package styler version 1.2.0 Index]