On Fri, Jun 11, 2010 at 11:30 AM, Henrik Bengtsson <hb@stat.berkeley.edu>wrote:

> Isn't this what source(..., chdir=TRUE) is for?  See help(source).
>
>
not really. Imagine you give someone a script, but you have no control over
where and how they run it. They shouldn't be required to put in the chdir
parameter.
Say, the script outputs a plot to a file (pdf,png,...) and you want the file
to be created next to the source script, as the user would expect it.

mg.

	[[alternative HTML version deleted]]

