[R] getting source file name

lutz.thieme@amd.com lutz.thieme at amd.com
Tue Aug 13 11:58:31 CEST 2002


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list