Description Usage Details Examples
View source: R/getScriptInfo.R
getScriptInfo
retrieves the file path and modification time
for the calling script.
1 |
Note: Currently this works if the script was called via source(), knitr::spin(), Rstudio's _compile notebook_ (ctrl-shift-K), Rscript or R -f.
1 | script_info <- getScriptInfo()
|
Warning message:
In getScriptInfo() :
Error in getScriptPath() : No path information available.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.