Skip to content

Full path to currently executed script file

2 messages · Ralf B, Henrik Bengtsson

#
I am looking for a way to determine the full filepath to the currently
executed script. Any ideas?

Ralf
#
See findSourceTraceback() in the R.utils package.

It's been discussed before, e.g.

http://www.mail-archive.com/r-help at r-project.org/msg112375.html
http://www.mail-archive.com/r-help at r-project.org/msg111871.html

Beware, if you find yourself having to do this, it may be that you are
doing something awkward.  It is likely that there is a better way to
what you are trying achieve.

My $.02

/Henrik
On Sun, Nov 14, 2010 at 4:31 AM, Ralf B <ralf.bierig at gmail.com> wrote: