Its not clear from your post what the framework is that you are working with
but assuming that you have sourced a file and want its name place this

   fn <- parent.frame(2)$ofile
   # other code

in a file a.R, say, and from within R source it:

  source("a.R")

This is not very safe and could easily have to be changed from one version
of R to the next if source() is changed since it makes use of internals
within source().

On 2/21/07, Rita Sousa <[EMAIL PROTECTED]> wrote:
> Hello,
>
>
>
> It is possible to return the path of the current working R-file (in
> execution)?
>
>
>
> Thanks,
>
> Rita Sousa.
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to