From romain at r-enthusiasts.com  Thu Apr 22 09:51:59 2010
From: romain at r-enthusiasts.com (Romain Francois)
Date: Thu, 22 Apr 2010 09:51:59 +0200
Subject: [Rd] RUnit bug?
In-Reply-To: <i2pd4cf43b61004211719ub28cdc53oc5a3281cd83d67ae@mail.gmail.com>
References: <i2pd4cf43b61004211719ub28cdc53oc5a3281cd83d67ae@mail.gmail.com>
Message-ID: <4BD0001F.7060009@r-enthusiasts.com>

Le 22/04/10 02:19, Dominick Samperi a ?crit :
>
> There appears to be a bug in RUnit.
>
> Given a testsuite testsuite.math, say, when I run:
>
> runTestSuite(testsuite.math)
>
> this works fine, provided there are no extraneous files in the
> unit test subdirectory.
>
> But if there are any Emacs temp files (with names that
> end with '~') then runTestSuite gets confused and tries to
> run functions from the temp files as well.

How do you define 'testsuite.math'. The default value of the 
testFileRegexp argument in defineTestSuite should rule these files out.

Romain

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/9aKDM9 : embed images in Rd documents
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7



[Rd] RUnit bug?
Romain Francois