Hi,
I am trying to check a package via R CMD CHECK and it is failing with

Error: '\s' is an unrecognized escape in character string starting "\s"

The culprit looks something like this:

gsub('\\s\\(.*\\)',"","this is a (test, man) dude")

which is correctly escaped with the "\\"'s   -- but it seems that R CMD
CHECK is pre-escaping the string when it reads in the code to check it.

How do I get R CMD CHECK to let the "\\s" 's through?

Thanks.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to