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)

krlmlr/styler documentation built on April 24, 2024, 4:14 p.m.