Skip to content

braces within strings in examples are not ignored #329

@jackwasey

Description

@jackwasey

I get a false positive error for mismatched braces when a string assignment in an example contains a brace:

#' @title some title
#' @examples
#' library(magrittr)
#' "\\rtlch\\fcs1 \\af1\\afs20\\alang1025 \\ltrch\\fcs0 \\fs20\\cf1\\lang1033\\langfe1033\\loch\\af1\\hich\\af1\\dbch\\af31505\\cgrid\\langnp1033\\langfenp1033 {\\rtlch\\fcs1 \\ab\\af1 \\ltrch\\fcs0 \\b\\insrsid2429293 0\\tab \\hich\\af1\\dbch\\af31505\\loch\\f1 unspecified" %>% parseFifthDigitDef
parseFifthDigitDef <- function(x) x

Escaping the brace makes it work, but at the expense of changing my string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions