From pgilbert@bank-banque-canada.ca  Fri Sep 28 19:34:54 2001
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Fri, 28 Sep 2001 14:34:54 -0400
Subject: [Rd] problems with new checks in R-devel
Message-ID: <3BB4C2CE.66325EAB@bank-banque-canada.ca>

Below are a few problems I have encountered with the new checks
being done in R-devel.

1/ I have two generics, test.equal and test.equal.tframe. The
first checks that two objects are equal while the second checks
if two objects have equal tframes (time frames).  There is no
reason these should have similar arguments but the check seems to
think that test.equal.tframe is a method for test.equal so I get:

* checking generic/method consistency ... WARNING
test.equal:
  function(obj1, obj2, ...)
test.equal.tframe:
  function(tf1, tf2)

2/ I have some generics which may or may not already be defined
(e.g. lag would be defined if library ts is attached) so in my R
code I use

if (!exists("lag")) lag <- function(x, ...) { UseMethod("lag") }

but this results in

Objects with usage in file `.../tframe/man/lag.tframe.Rd' but
missing from code:
[1] "lag"

Is there a better way to approach this in my R code so I don't
get these warnings?

3/  I have a few general introduction  .Rd files which do not
have a usage line and they produce

* checking for undocumented arguments in \usage ... WARNING
Error in parse(file, n, text, prompt) : parse error
Error in checkDocArgs(dir = ".../syskern") :
        cannot source usages in file
.../syskern/man/00Intro.syskern.Rd
Execution halted

Should that be expected or is it a bug?

Paul Gilbert


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] problems with new checks in R-devel
Paul Gilbert