Skip to content
Prev 22370 / 398503 Next

filename of source file

Hi
	Is there a command which will return the complete pathname of the 
file from which the current source is being read? I want something which 
can be inserted into any .r file and it will be able to ascertain 
exactly where it is, so that it can save data to the same directory, no 
matter where it is, regardless of what the current working directory is.

Dave Richmond
daver969 at mac.com
------------------------------------------------------
"It works on a complex scientific principle
known as pot luck." - The Doctor

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