Re: [Rd] Codoc mismatches

From: Yihui Xie <xieyihui_at_gmail.com>
Date: Tue, 17 Nov 2009 12:26:48 -0600

You need \\\\. See R-exts 2.14.2. It also confused me the other day.

Regards,
Yihui

--
Yihui Xie <xieyihui_at_gmail.com>
Phone: 515-294-6609 Web: http://yihui.name
Department of Statistics, Iowa State University
3211 Snedecor Hall, Ames, IA



On Tue, Nov 17, 2009 at 9:26 AM, Hadley Wickham <hadley_at_rice.edu> wrote:

> I have a function:
>
> source_dir <- function(path, pattern = "\\.[rR]$", chdir = TRUE) ...
>
> documented with
>
> ...
> \usage{source_dir(path, pattern="\\.[rR]$", chdir=TRUE)}
> ...
>
> But I get
>
> Codoc mismatches from documentation object 'source_dir':
> source_dir
>  Code: function(path, pattern = "\\.[rR]$", chdir = TRUE)
>  Docs: function(path, pattern = "\.[rR]$", chdir = TRUE)
>  Mismatches in argument default values:
>    Name: 'pattern' Code: "\\.[rR]$" Docs: "\.[rR]$"
>
>
> Is this a bug, or do I need
>
> \usage{source_dir(path, pattern="\\\\.[rR]$", chdir=TRUE)}
>
> ?
>
> Hadley
>
> --
> http://had.co.nz/
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 17 Nov 2009 - 18:55:53 GMT

This archive was generated by hypermail 2.2.0 : Wed 18 Nov 2009 - 02:40:28 GMT