Skip to content
Back to formatted view

Raw Message

Message-ID: <E540DF203FFED21182EB0008C72875600AEDA8A0@deexmta4.amd.com>
Date: 2002-08-13T09:58:31Z
From: lutz.thieme@amd.com
Subject: 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._