-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Description
I'm actually not sure if this is intentional or not. But in roxygen2 <= 7.0.0, given this input in the examples section:
#' "\\alpha" \\It would produce this output:
"\\\\alpha" \\\\
In 7.0.1, it produces this:
"\\alpha" \\
Reprex (note that there are extra backslashes in the input for escaping):
library(roxygen2)
roc_proc_text(rd_roclet(), "
#' Example
#' @examples
#' \"\\\\alpha\" \\\\
f <- function() {}
")
#> $f.Rd
#> % Generated by roxygen2: do not edit by hand
#> % Please edit documentation in ./<text>
#> \name{f}
#> \alias{f}
#> \title{Example}
#> \usage{
#> f()
#> }
#> \description{
#> Example
#> }
#> \examples{
#> "\\alpha" \\
#> }For a real-life example, the upgrade to 7.0.1 resulted in this change, which led to a R CMD check failure:
rstudio/shiny@0cbe4bb#diff-fd9eb6354a4cc65e5016dd2dd015e7d4R20
If this is the intended behavior, then that's fine; we can change the .R files to match.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels