getScriptPath: Get the path of the calling script

Description Usage Arguments Examples

View source: R/getScriptPath.R

Description

getScriptPath returns the full path of the script that called this function (if any) or NULL if path is not available

Usage

1

Arguments

absolute

Return absolute path (absolute = TRUE, default) or path relative to working directory (FALSE)

Examples

1
2
3
4
## Not run:  
mypath <- getScriptPath() 

## End(Not run)

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