[R] code/documentation mismatch with backslashes in argument list

Joerg van den Hoff j.van_den_hoff at fzd.de
Fri May 4 16:30:57 CEST 2007


I have a function definition such as

f <- function (pattern = ".*\\.txt") {....}

in the manpage this has to be documented as 

f <- function (pattern = ".*\\\\.txt") 

in order to get the correct display (with double backslash) in the R console
when issuing `?f', but this causes complains from `R CMD CHECK' (code
documentation mismatch), which is not nice.

question: is there (or will there be with future releases) a way to avoid these
warnings without loosing the correct display of the manpage?

regards,
joerg



More information about the R-help mailing list