From ripley at stats.ox.ac.uk  Sun May  4 07:05:10 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun, 4 May 2008 06:05:10 +0100 (BST)
Subject: [Rd] R CMD check: small tests suggestion
In-Reply-To: <f8e6ff050805031814n300e2ab1n4a7a70a4fadc669e@mail.gmail.com>
References: <f8e6ff050805031814n300e2ab1n4a7a70a4fadc669e@mail.gmail.com>
Message-ID: <alpine.LFD.1.10.0805040555260.15533@gannet.stats.ox.ac.uk>

On Sat, 3 May 2008, hadley wickham wrote:

> It would be nice if R CMD check ran any file in the tests directory
> that has "one of the extensions .R, .S, .q, .r, or .s" - i.e. it
> should match the files processed in the R directory.

Whereas what it is documented in 'Writing R Extensions' is to use .R or 
.Rin files.  This leaves the other extensions available for other purposes 
-- the difference is that there should be no other files in the R 
directory, but often will be in the tests directory.

I have some sympathy for .r (which we allow for demos) given the 
prevalence of case-insensitive file systems, but why would it be 'nice' to 
have the others?  And what would the output file be called?  Should .S be 
processed to .Sout and matched to a .Sout.save file?  This would seem to 
introduce more confusion that it might remove.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] R CMD check: small tests suggestion
Prof Brian Ripley