Re: [Rd] Package Unit Testing

From: Gregor Gorjanc <gregor.gorjanc_at_bfro.uni-lj.si>
Date: Tue 25 Jul 2006 - 11:04:43 GMT

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

______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Tue Jul 25 21:06:56 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 25 Jul 2006 - 16:35:53 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.