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

From: Gorjanc Gregor <Gregor.Gorjanc_at_bfro.uni-lj.si>
Date: Wed, 05 Sep 2007 18:53:09 +0200

Hi!

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel 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 https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.