From hadley at rice.edu  Tue Nov 17 16:26:03 2009
From: hadley at rice.edu (Hadley Wickham)
Date: Tue, 17 Nov 2009 09:26:03 -0600
Subject: [Rd] Codoc mismatches
Message-ID: <f8e6ff050911170726ic61a885p35ec4516e6931413@mail.gmail.com>

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/



[Rd] Codoc mismatches
Hadley Wickham