From xieyihui at gmail.com  Tue Nov 17 19:26:48 2009
From: xieyihui at gmail.com (Yihui Xie)
Date: Tue, 17 Nov 2009 12:26:48 -0600
Subject: [Rd] Codoc mismatches
In-Reply-To: <f8e6ff050911170726ic61a885p35ec4516e6931413@mail.gmail.com>
References: <f8e6ff050911170726ic61a885p35ec4516e6931413@mail.gmail.com>
Message-ID: <89b6b8c90911171026m5c6c88d2v487288e301375669@mail.gmail.com>

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
>



[Rd] Codoc mismatches
Yihui Xie