Skip to content

source filename information within the source?

1 message · Prasenjit Kapat

#
Hi,
Excuse me for using this list as a proxy for "r-sig-linux"!

Is there anything analogous to `basename $0` (more importantly, "$0")
of bash in R? Of course, this only makes sense in either BATCH mode or
source() or  shebang scripts (e.g using littler or Rscript)?

Thanks for being considerate ;)