add_roxygen_mask: Add the roxygen mask to code

View source: R/roxygen-examples-add-remove.R

add_roxygen_maskR Documentation

Add the roxygen mask to code

Description

This function compares text with initial_text to make sure a mask is only added to roxygen comments, not ordinary comments

Usage

add_roxygen_mask(text, initial_text, example_type)

Arguments

text

Character vector with code.

initial_text

The roxygen code example to style with mask and potentially ordinary comments.

example_type

Either 'examples' or 'examplesIf'.


styler documentation built on Aug. 29, 2023, 5:10 p.m.