From tobias.verbeke at telenet.be  Sat Apr  5 11:57:53 2008
From: tobias.verbeke at telenet.be (Tobias Verbeke)
Date: Sat, 05 Apr 2008 11:57:53 +0200
Subject: [Rd] tests Rin and Rout
In-Reply-To: <47F743A4.10808@biostat.ku.dk>
References: <47F014DB.6040000@u-paris10.fr>	<18416.40443.244387.473214@stat.math.ethz.ch>	<47F73F2A.4010403@u-paris10.fr>
	<47F743A4.10808@biostat.ku.dk>
Message-ID: <47F74D21.6050309@telenet.be>

Peter Dalgaard wrote:
> Christophe Genolini wrote:
>>> hmm, I see 219 out 1378 CRAN packages having a 'tests'
>>> subdirectory, so it seems you have been a bit unlucky. ;-)
>>>   
>>>     
>> Luck has probably nothing related with my failure.
>> I just try to look in packages recommanded by Pr Brian Ripley (like 
>> codetools, foreign, lattice)
>> and I did not find any tests directories. So either I am not looking in 
>> the right place, or tests are
>> not including in the package for windows. Any idea?
>>
>>   
> Aha... That would explain it, yes. It is only in the _source_ package 
> and not installed.
> 
> [pd at titmouse2 ISWR]$ ls ISwR/
> CVS  data  DESCRIPTION  inst  man  R  tests  TITLE
> [pd at titmouse2 ISWR]$ ls ~/Rlibrary/ISwR/
> CONTENTS  DESCRIPTION  html   latex  Meta  rawdata  scripts
> data      help         INDEX  man    R     R-ex
> [pd at titmouse2 ISWR]$ grep -i version  ISwR/DESCRIPTION
> Version: 2.0-0
> [pd at titmouse2 ISWR]$ grep -i version  ~/Rlibrary/ISwR/DESCRIPTION
> Version: 2.0-0

For the record (and similarly to what Martin Maechler mentioned 
previously in this thread) it is perfectly possible to include a 
$R_PKG_ROOT/inst/unitTests directory (or similar) with tests. This will 
make sure the directory is included in binary (and installed) packages 
as well. Open the Windows binary package zip file for RSQLite, for example.

Kind regards,
Tobias



[Rd] tests Rin and Rout
Tobias Verbeke