Perhaps the best way to do this is to make up an R package.  The "Writing R
Extensions" manual has discussions on how to set up test codes.  There are
also examples in some packages that shipped with R itself.  Look in the
`check' subdirectory of packages under .../R-1.6.2/src/library.

Andy

> -----Original Message-----
> From: Giles Heywood [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 3:48 PM
> To: [EMAIL PROTECTED]
> Subject: [R] Test suites
> 
> 
> I have a collection of functions, class definitions and 
> methods which I
> would like to test systematically for their correctness after 
> changes to
> their code, and also after major R revisions.  I believe that 
> the correct
> term for these systematic tests (as opposed to more informal 
> tests) is a
> 'test suite'.  Does anyone [apart from Pat Burns :-) ] have code, or
> templates, or specific suggestions for the best approach to 
> constructing
> test suites?
> 
> Thanks in advance
> 
> Giles Heywood
> 
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

------------------------------------------------------------------------------

______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to