getScriptInfo: Get information about the calling script

View source: R/getScriptInfo.R

getScriptInfoR Documentation

Get information about the calling script

Description

getScriptInfo retrieves the file path and modification time for the calling script.

Usage

getScriptInfo()

Details

Note: Currently this works if the script was called via source(), knitr::spin(), Rstudio's _compile notebook_ (ctrl-shift-K), Rscript or R -f.

Examples

script_info <- getScriptInfo()

envDocument documentation built on Sept. 11, 2025, 9:08 a.m.