[R-SIG-Finance] Tests for TTR, and similar, packages

Brian G. Peterson brian at braverock.com
Thu Mar 25 23:07:57 CET 2010


On 03/25/2010 03:41 PM, Worik wrote:
> Are there any test sets that can be used with the TTR packages to verify they
> work as they should?
>
>    
There is documentation, which is quite extensive, and the references 
therein, and the code, and the examples.

Basically, the examples provide something of a regression suite, though 
I don't think they're set up with expected outputs in TTR as *formal* 
tests, as that was quite a pain in R package-land up until the 2.10.x 
series.  And TTR does indeed have several unit tests, which you can run, 
and examine, in the tests/ directory.

> I will be using them soon in some academic projects and the issue of
> reliability is weighing heavily on my mind.
>    

Well, the functions in TTR are used every day by hundreds, if not 
thousands of people and firms around the world.  That's not a guarantee, 
of course, but it is meaningful.  In such a widely used package, an 
awful lot of smart folks are thinking about the output of those 
functions.  Some of the lesser used stuff in the corners would 
undoubtedly benefit from more looking at (ALL code has bugs, even if 
only at the edges or with 'bad' inputs), but the main, popular, stuff is 
used a LOT.

Please share any tests you write, even (especially) simple ones or edge 
cases.  I'm sure Josh would be happy to include them for others to 
benefit from.

Regards,

    - Brian

-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-SIG-Finance mailing list