getScriptPath {envDocument} | R Documentation |
Get the path of the calling script
Description
getScriptPath
returns the full path of the script that called this function (if any)
or NULL if path is not available
Usage
getScriptPath(absolute = TRUE)
Arguments
absolute |
Return absolute path (absolute = TRUE, default) or path relative to working directory (FALSE) |
Examples
## Not run:
mypath <- getScriptPath()
## End(Not run)
[Package envDocument version 2.4.1 Index]