get_Rscript_filename: Returns file name of calling Rscript

Description Usage Value


get_Rscript_filename returns the file name of calling Rscript




A string with the filename of the calling script. If not found (i.e. you are in a interactive session) returns NA.

Search within the getopt package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.