Re: [Rd] R CMD check may not detect a code/documentation mismatch

2009-12-16 Thread Peter Dalgaard
[orig. correspondence below] Brian and Kurt have been sinking their teeth further into this. It turned out that there was a gotcha with the .Primitive functions like `:`, `.C`, etc., for which formals() always returns NULL. However, replacement with a check for typeof(f) == "closure" made things

Re: [Rd] R CMD check may not detect a code/documentation mismatch

2009-12-14 Thread Petr Savicky
On Mon, Dec 14, 2009 at 09:24:12AM +0100, Kurt Hornik wrote: > > Peter Dalgaard writes: [...] > > Hmm, looks more like a thinko in this code inside codoc(): > > > functions_in_code <- Filter(function(f) { > > f <- get(f, envir = code_env) > > is.function(f) && (length(fo

Re: [Rd] R CMD check may not detect a code/documentation mismatch

2009-12-14 Thread Peter Dalgaard
Kurt Hornik wrote: >> Peter Dalgaard writes: > >> Petr Savicky wrote: >>> For the package at >>> http://www.cs.cas.cz/~savicky/R-devel/something_0.0.0.tar.gz >>> which is a minor part of some other package only to demonstrate the >>> problem, i get (under R version 2.11.0 Under development 200

Re: [Rd] R CMD check may not detect a code/documentation mismatch

2009-12-14 Thread Kurt Hornik
> Peter Dalgaard writes: > Petr Savicky wrote: >> For the package at >> http://www.cs.cas.cz/~savicky/R-devel/something_0.0.0.tar.gz >> which is a minor part of some other package only to demonstrate the >> problem, i get (under R version 2.11.0 Under development 2009-12-12 r50714 >> and also

Re: [Rd] R CMD check may not detect a code/documentation mismatch

2009-12-13 Thread Peter Dalgaard
Petr Savicky wrote: For the package at http://www.cs.cas.cz/~savicky/R-devel/something_0.0.0.tar.gz which is a minor part of some other package only to demonstrate the problem, i get (under R version 2.11.0 Under development 2009-12-12 r50714 and also under R-2.9.2, openSUSE 11.1 (x86_64) and C

[Rd] R CMD check may not detect a code/documentation mismatch

2009-12-13 Thread Petr Savicky
For the package at http://www.cs.cas.cz/~savicky/R-devel/something_0.0.0.tar.gz which is a minor part of some other package only to demonstrate the problem, i get (under R version 2.11.0 Under development 2009-12-12 r50714 and also under R-2.9.2, openSUSE 11.1 (x86_64) and CentOS release 5.2)