From maechler at stat.math.ethz.ch  Fri Dec 12 18:13:02 2008
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Fri, 12 Dec 2008 17:13:02 +0000 (UTC)
Subject: [Rd] package development
References: <200812112304.mBBN4stJ008607@rocky.mayo.edu>
	<4941A58F.60206@epfl.ch>
Message-ID: <loom.20081212T170626-86@post.gmane.org>

Mathieu Ribatet <mathieu.ribatet <at> epfl.ch> writes:

> 
> Dear Terry,
> 
> One way to locate which file is wrong - surely not the most brillant 
> way! You could do an R script that sources each of your .R files within 
> a "for (file in file.names)" loop.
> When R will stop, it will indicate which file has a wrong syntax and 
> more info.

Yes, I also use this approach, however making use of the  
sourceDir() utility function that you get by
example(source).

I had contemplated on and off, it was worth of making sourceDir() an 
"official" function and had found that I could not reasonably see
the case for it..

Martin Maechler, ETH Zurich



[Rd] package development
Martin Maechler