Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

parse_roxygen

Parse roxygen comments into text


Description

Used to parse roxygen code examples. Removes line break before \\dontrun{...} and friends because it does not occur for segments other than \\dont{...} and friends.

Usage

parse_roxygen(roxygen)

Arguments

roxygen

Roxygen comments.

Examples

styler:::parse_roxygen(c(
  "#' @examples",
  "#' 1+  1"
))
styler:::parse_roxygen(c(
  "#' @examples 33",
  "#'1+  1"
))

styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.