From murdoch at stats.uwo.ca  Sun Nov  2 18:46:47 2008
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Sun, 02 Nov 2008 12:46:47 -0500
Subject: [Rd] R CMD check with Matlab and perl?
In-Reply-To: <490DE617.40104@pdf.com>
References: <490DE617.40104@pdf.com>
Message-ID: <490DE787.7040209@stats.uwo.ca>

Spencer Graves wrote:
> Hi, All: 
>
>       How might one test Matlab and perl code during "R CMD check"? 
>
>       I ask for two reasons:  First, the "fda" package exists in both R 
> and Matlab, and it would help if we could run test examples in Matlab as 
> part of "R CMD check".  I tried "R.matlab", but could not get it to work 
> in that context. 
>   

Can you run the tests from the command line?  If so, you should be able 
to call them from system() in a script in the tests directory,
or in an example section of an Rd file.

Duncan Murdoch
>       Second, I have professional colleagues who write code in Matlab 
> and perl, but have no unit or regression testing.  If I could test 
> Matlab and perl from within "R CMD check" examples, I think I could get 
> them to use it, because it would produce more "trustworthy software" 
> [the "Prime Directive" of Chambers (2008) Software for Data Analysis 
> (Springer)] AND give them documentation at the same time -- while 
> simultaneously reducing the cost of producing and maintaining code to 
> given specifications. 
>
>
>       Thanks,
>       Spencer
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] R CMD check with Matlab and perl?
Duncan Murdoch