[R] package tests
Ott Toomet
siim at obs.ee
Fri Aug 9 16:08:00 CEST 2002
Hi,
It is not quite clear for me what do tests mean in the case of a package.
,,Writing R extensions'' says:
... these two [files .Rout.save and .Rout] are compared, with differences
being reported but not causing an error.
and
... tests specified in that directory are run [by R CMD check].
I want to write a test for a self-made output routine, which saves data to a
file. I think, in this case it is meaningful to create a data, save to the
file, and then compare the new file with the original one. But two problems
arose -- first, R seems to assume that it is output to screen, which is to
be compared, and second, CMD check said OK even when the files were quite a
different. Or is CMD check simply testing whether the test programs produce
an error?
with best wishes,
Ott Toomet
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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