Message-ID: <490DE787.7040209@stats.uwo.ca>
Date: 2008-11-02T17:46:47Z
From: Duncan Murdoch
Subject: R CMD check with Matlab and perl?
In-Reply-To: <490DE617.40104@pdf.com>
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
>