getScriptInfo: Get information about the calling script

Description Usage Details Examples

View source: R/getScriptInfo.R

Description

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

Usage

1

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

1
script_info <- getScriptInfo()

Example output

Warning message:
In getScriptInfo() :
  Error in getScriptPath() : No path information available.

envDocument documentation built on Aug. 20, 2019, 1:03 a.m.