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

From: Petr Savicky <savicky_at_cs.cas.cz>
Date: Sun, 13 Dec 2009 11:44:02 +0100


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)

  R CMD check something_0.0.0.tar.gz

  ...

although the package code contains

  testCoreNA <- function()

and the documentation contains

  \usage{
  testCoreClass(verbose=0)
  testCoreAttrEval(verbose=0)
  testCoreReg(verbose=0)
  testCoreNA(verbose=0)
  }

There is a mismatch between code and documentation of testCoreNA(). Is the problem caused by having four entries in \usage{} section?

Petr Savicky.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun 13 Dec 2009 - 10:48:14 GMT

This archive was generated by hypermail 2.2.0 : Sun 13 Dec 2009 - 15:51:02 GMT