On Fri, Jun 11, 2010 at 11:30 AM, Henrik Bengtsson 
<h...@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]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to