From tplate at blackmesacapital.com  Wed Mar 17 21:58:01 2004
From: tplate at blackmesacapital.com (Tony Plate)
Date: Wed Mar 17 21:58:01 2004
Subject: [Rd] unit testing framework for R?
In-Reply-To: <85oeqvz1i2.fsf@servant.blindglobe.net>
References: <EXCHANGEeTUgAHbx4Rr0000555e@exchange.systemsbiology.net>
	<6.0.3.0.2.20040317114224.056067e8@mailhost.blackmesacapital.com>
	<85oeqvz1i2.fsf@servant.blindglobe.net>
Message-ID: <6.0.3.0.2.20040317135528.055dad30@mailhost.blackmesacapital.com>

How would a "unit testing" framework look different?  (other than maybe the 
ability to pick and choose tests easily and run them quickly).

-- Tony Plate

At Wednesday 01:01 PM 3/17/2004, A.J. Rossini wrote:

>the package 'tests' directory is great, and we use it, but it isn't
>unit testing in the same sense -- more regression tests (reactive
>rather than proactive).
>
>best,
>-tony
>
>
>Tony Plate <tplate@blackmesacapital.com> writes:
>
> > Packages can have a 'tests' directory, which can contain foo.R and
> > foo.Rout.save files.  When packages are built (or checked) the output
> > from running R with the commands in foo.R is compared with
> > foo.Rout.save, and differences are reported.
> >
> > The "Writing R Extensions" manual discusses this a little.  It
> > suggests: "Use R CMD check --help (Rcmd check --help on Windows) to
> > obtain more information about the usage of the R package checker. A
> > subset of the checking steps can be selected by adding flags."
> >
> > I've considered looking at several enhancements of the testing
> > features: (1) automatically construct foo.R from foo.Rout.save (easy
> > if the file only contains simple commands issued at the standard
> > prompt); (2) allow specification of which test files to run; and (3)
> > print summaries of test successes and failures at the end of running
> > the selected tests.  Is there any wider interest in such features?
> >
> > -- Tony Plate
> >
> > At Wednesday 11:11 AM 3/17/2004, Paul Shannon wrote:
> >>In a quick search of the R website just now, I found no mention of
> >>a unit testing framework for R.  I hope to find something
> >>in the style of Java's JUnit, or Python's unittest.  Is such a
> >>thing available?
> >>
> >>Thanks,
> >>
> >>   - Paul Shannon
> >>     Institute for Systems Biology
> >>     Seattle
> >>
> >>______________________________________________
> >>R-devel@stat.math.ethz.ch mailing list
> >>https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> >
> > ______________________________________________
> > R-devel@stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> >
>
>--
>rossini@u.washington.edu            http://www.analytics.washington.edu/
>Biomedical and Health Informatics   University of Washington
>Biostatistics, SCHARP/HVTN          Fred Hutchinson Cancer Research Center
>UW (Tu/Th/F): 206-616-7630 FAX=206-543-3461 | Voicemail is unreliable
>FHCRC  (M/W): 206-667-7025 FAX=206-667-4812 | use Email
>
>CONFIDENTIALITY NOTICE: This e-mail message and any attachments may be
>confidential and privileged. If you received this message in error,
>please destroy it and notify the sender. Thank you.


[Rd] unit testing framework for R?
Tony Plate