Skip to content

Escaping string characters in roxygen @examples #505

@rorynolan

Description

@rorynolan

Hi there,
The following file doesn't make it through styler. It throws a warning message:
When processing r.R: '\.' is an unrecognized escape in character string starting ""\."

#' Function.
#'
#' Details.
#'
#' @param x Only argument.
#'
#' @examples
#' \dontrun{
#' funfunfun("\\.txt$")
#' }
#' @export
funfunfun <- function(x) {
  invisible(x)
}

Is this a bug, or am I missing something?

Thanks, love styler,
Rory

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions