Re: [R] __FILE__ object in R

2012-09-22 Thread Duncan Murdoch
On 12-09-21 3:27 PM, Peter Waltman wrote: Hi - I'm curious if there is a way to get access to the location of the calling script within R. I found one way of accessing it from this thread, https://stat.ethz.ch/pipermail/r-devel/2008-April/048914.html, which recommends using either: parent.fram

[R] __FILE__ object in R

2012-09-21 Thread Peter Waltman
Hi - I'm curious if there is a way to get access to the location of the calling script within R. I found one way of accessing it from this thread, https://stat.ethz.ch/pipermail/r-devel/2008-April/048914.html, which recommends using either: parent.frame(2)$ofile Or FILE <- (function() { att