Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

braces within strings in examples are not ignored #329

Closed
jackwasey opened this issue Mar 26, 2015 · 1 comment
Closed

braces within strings in examples are not ignored #329

jackwasey opened this issue Mar 26, 2015 · 1 comment

Comments

@jackwasey
Copy link

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.

@hadley
Copy link
Member

hadley commented Oct 7, 2015

Simpler reprex:

#' Title.
#' @examples
#' f("{ unspecified")
f <- function(x) x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants