[Rd] package development

Martin Maechler maechler at stat.math.ethz.ch
Fri Dec 12 18:13:02 CET 2008

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

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

More information about the R-devel mailing list