Paul Johnson
2007-Jun-11 15:29 UTC
[R] Can I access the filename of the active editor window?
When I run a script from an open editor window (using Ctrl-A, Ctrl-R), I would like the filename of the script to be automatically written into the program output, to keep up with frequent version changes. Is there a way to access the filename (+ path) of the open script (the active one, if there is more than one editor window open)? I'm using R 2.4.1 on Windows XP. Paul [[alternative HTML version deleted]]