Re: [R] File > Save As...

From: Hadley Wickham <hadley_at_rice.edu>
Date: Tue, 15 Mar 2011 20:10:30 -0500

>> Could getSrcFilename() gain a default argument so that
>> getSrcFilename() would by default return the path of the executing
>> script?
>
> No, it needs to see a function defined in that script.

But I thought default arguments were evaluated in the parent environment? Does that not follow for source attributes as well?

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

______________________________________________
R-help_at_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.
Received on Wed 16 Mar 2011 - 01:17:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Mar 2011 - 02:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive