[BioC] R CMD check and RUnit
Gorjanc Gregor
Gregor.Gorjanc at bfro.uni-lj.si
Wed Aug 9 23:26:36 CEST 2006
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 at ...> 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.
More information about the Bioconductor
mailing list