[R] get name of script from where the command is invoked

Duncan Murdoch murdoch.duncan at gmail.com
Sat Mar 5 23:44:29 CET 2011


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



More information about the R-help mailing list