[Rd] Package Unit Testing

Gregor Gorjanc gregor.gorjanc at bfro.uni-lj.si
Tue Jul 25 13:04:43 CEST 2006


Torsten Hothorn wrote:
...
>> Browsing a bit in sources reveals that *.Rout.save is copy of R session
>> (starts with "welcome" text and later one code and output is there).
>> But how does one generate such a file?
> 
> either R CMD BATCH or simply run R CMD check <pkg> once and copy
> <pkg>.Rcheck/tests/*.Rout into <pkg>/tests/*Rout.save
> 
>> Additionally, does testing also
>> test the first "welcome" text - different version of R haave a bit
>> different
>> "welcome" text and that should be an error then or ...
> 
> R CMD check takes care of that.

Thank you. I am also attaching a small gzipped patch for R-exts.texi. I
did not wrap the lines in the text. If that is necesarry I can do it and
resend the patch.

-- 
Lep pozdrav / With regards,
    Gregor Gorjanc

----------------------------------------------------------------------
University of Ljubljana     PhD student
Biotechnical Faculty
Zootechnical Department     URI: http://www.bfro.uni-lj.si/MR/ggorjan
Groblje 3                   mail: gregor.gorjanc <at> bfro.uni-lj.si

SI-1230 Domzale             tel: +386 (0)1 72 17 861
Slovenia, Europe            fax: +386 (0)1 72 17 888

----------------------------------------------------------------------
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.
----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: R-exts.texi-tests-patch.gz
Type: application/x-gzip
Size: 435 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-devel/attachments/20060725/dfd8bb28/attachment.gz 


More information about the R-devel mailing list