emulate_rd: Convert roxygen comments to Rd code

View source: R/roxygen-examples-parse.R

emulate_rdR Documentation

Convert roxygen comments to Rd code

Description

We leverage roxygen2 workhorse function roxygen2::roc_proc_text() if our input contains character that have to be escaped. Since this is an expensive operation, we opt out of it and perform a simple remove_roxygen_mask() when there are no characters to escape.

Usage

emulate_rd(roxygen)

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