Dear List members, is it somehow possible to retrieve the name of the file from where some command is invoked in (!) interactive mode? That means that I am running single lines of code within ESS /R-GUI and do NOT use source to execute the whole script. Cheers Jannis
Duncan Murdoch
2011-Mar-05 22:44 UTC
[R] get name of script from where the command is invoked
On 11-03-05 1:36 PM, Jannis wrote:> Dear List members, > > > is it somehow possible to retrieve the name of the file from where some > command is invoked in (!) interactive mode? That means that I am running > single lines of code within ESS /R-GUI and do NOT use source to execute > the whole script.If you're not using source(), R doesn't know the name of the file. ESS probably does, but you'll probably have to ask on an ESS list to find out if you can get to it. Duncan Murdoch