getScriptInfo {envDocument}R 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()

[Package envDocument version 2.4.1 Index]