Re: [Rd] RUnit testing with R CMD check and more

From: Gorjanc Gregor <>
Date: Wed, 05 Sep 2007 18:53:09 +0200


> (another) Martin wrote:
> One important scenario I use during development is to run selected
> unit tests, typically found in a single file. Usually this is
> preceeded by INSTALL rather than check, as I optimistically think that
> my changes will be an improvement and hence installing the package is
> a starting point for the next iteration.

Yes, I also do that very often, especially if I work only on one function and I only want to test if it works. With this in mind there is a Makefile in PKG/inst/RUnitTests (this is based largely on work probably also by you and other "BioC folk"), which provides handy

make # run unit tests
make all # install and run unit tests

Though, this runs all unit tests.

Gregor mailing list Received on Wed 05 Sep 2007 - 23:08:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Sep 2007 - 06:40:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.