Skip to content
Prev 22631 / 398502 Next

getting source file name

Hello everybody,

is there a way to get the file name of the source file from which I read and
execute my R code? 
In other words: If I'm executing "source('myRfile.r')" I'd like to have a statement 
inside myRfile.r like "src.file<-$0"  (in unix csh style) which assigns th variable
src.file to 'myRfile.r' .

Thanks in advance!

Best regards,

Lutz

	Lutz Thieme
	Product Engineering
	AMD - Saxony Manufacturing GmbH
	phone: + 49-351-277 -  4269
	fax:       + 49-351-277-9-4269



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._