Skip to contents

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_.