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)

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