From hpages at fhcrc.org  Tue Feb  2 20:30:32 2010
From: hpages at fhcrc.org (=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=)
Date: Tue, 02 Feb 2010 11:30:32 -0800
Subject: [Rd] Missing arg default values in Docs are not triggering an 'R
 CMD check' warning
Message-ID: <4B687D58.2020301@fhcrc.org>

Hi,

Having

   foo <- function(x, y, z) {TRUE}

in my code and

   foo(x, y=NULL, z=0)

in the \usage section of my man page will trigger the
following warning during R CMD check:

* checking for code/documentation mismatches ... WARNING
Codoc mismatches from documentation object 'foo':
foo
   Code: function(x, y, z)
   Docs: function(x, y = NULL, z = 0)
   Mismatches in argument default values:
     Name: 'y' Code:  Docs: NULL
     Name: 'z' Code:  Docs: 0

which is good.

But if the mismatch is the other way around i.e if the argument
default values are specified in Code and not in Docs, then
R CMD check won't say anything. Is that intended or is it a bug?

Thanks,
H.



[Rd] Missing arg default values in Docs are not triggering an 'R CMD check' warning
=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=