[R] code/documentation mismatches

Kurt Hornik Kurt.Hornik at ci.tuwien.ac.at
Thu Sep 6 09:55:56 CEST 2001


>>>>> Christian Hoffmann writes:

> Hi,
> I would like to get a hint on how to debug in the case of 

> #> R CMD check pllib

> signalling

> * checking for code/documentation mismatches ... WARNING
> Error in parse(file, n, text, prompt) : syntax error on line 22

> I am able to sort out which of the files is the culprit is by swapping
> files in and out of the /R and /man directories. But I cannot find the
> syntax error, the .Rd file seems to be correct.

> It would be helpful to have an indication of the file which contains the
> error. The corresponding line in 

> \pllib.Rcheck\pllib-Ex.R

> is even a blank line.

If you have access to the current r-devel snapshot, use R CMD check from
there (in fact, I think you could simply use codoc() from there).  The
newer versions report which file caused the problem, etc.  If you do not
have such access, use codoc() from the R prompt with `keep = TRUE', and
inspect the tempfiles.  Typically, the problems come from statements in
\usage which are not valid R code.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list