Message-ID: <loom.20081212T170626-86@post.gmane.org>
Date: 2008-12-12T17:13:02Z
From: Martin Maechler
Subject: package development
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