Re: [R] R CMD check and RUnit

From: Gorjanc Gregor <Gregor.Gorjanc_at_bfro.uni-lj.si>
Date: Thu 10 Aug 2006 - 07:26:36 EST

I have created page [1] in R Wiki on this topic.

http://wiki.r-project.org/rwiki/doku.php?id=developers:runit

Seth, I have also managed to tweak doRUnit.R so that R CMD check gives an error if the tests fail. I will leave windows port for someone else ;)

"Gorjanc Gregor" <Gregor.Gorjanc@...> writes:
> In case you are interested in fusing RUnit with R CMD check under unix
> alike OS, here is one way of doing/hacking this.
>
> My aim was to perform unit tests:
> (1) during R CMD check
> (2) at any other time

As you know, we've been using the RUnit package in our group here in Seattle to help with the development of Biobase and graph. I've found that writing unit tests improve my coding by making me focus on the API instead of the implementation and by making bug fixing easier.

I've been meaning to improve the scripts I use to run the tests and what you've posted is a start in that direction.

I have two additional aims, however, that aren't yet covered:

(3) R CMD check should give an error if the tests fail. (4) Works on Windows.

Lep pozdrav / With regards,

    Gregor Gorjanc


University of Ljubljana     PhD student
Biotechnical Faculty        URI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Department     mail: gregor.gorjanc <at> bfro.uni-lj.si
Groblje 3                   tel: +386 (0)1 72 17 861
SI-1230 Domzale             fax: +386 (0)1 72 17 888
Slovenia, Europe

"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-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Aug 10 07:49:58 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 Thu 10 Aug 2006 - 08:20:37 EST.

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