Skip to content
Prev 13352 / 398503 Next

code/documentation mismatches

This is done in ./src/scripts/check

$log->checking("for code/documentation mismatches");

        my $Rcmd = "$TMPDIR/Rcmd.$$";
        my $Rout = "$TMPDIR/Rout.$$";
        open Rcmd, "> $Rcmd" || die "Cannot write to \`$Rcmd'\n";
        print Rcmd "codoc(dir = \"${pkgdir}\")\n";
        close Rcmd;
        system("${R_exe} ${R_opts} --quiet < ${Rcmd} > ${Rout}");
        my @out;
        open Rout,  "< $Rout";
        while(<Rout>) {chomp; push(@out, $_);}
        close Rout;
        unlink($Rcmd);
        unlink($Rout);

we can see that the code checked is generated by "codoc", therefore:

R> codoc(dir="path_to_mypackage")

returns the code to be checked. Often the error above is caused by a
newline in the parameter-list in the Rd-file. 

Torsten
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._