getfile: Returns file name being interpreted by Rscript

View source: R/utils.R

getfileR Documentation

Returns file name being interpreted by Rscript

Description

getfile() returns the file name that Rscript is interpreting. Also supports littler via the LITTLER_SCRIPT_PATH environment variable. get_Rscript_filename() is an alias.

Usage

getfile()

get_Rscript_filename()

Value

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


getopt documentation built on April 28, 2026, 1:07 a.m.