sys.script {funr} | R Documentation |
Get path of current script
Description
Get path of current script
Usage
sys.script()
Source
http://stackoverflow.com/questions/1815606/rscript-determine-path-of-the-executing-script
Examples
## Not run:
## cat foo.R
## library(funr);sys.script()
## source("foo.R")
## Rscript foo.R
## End(Not run)
[Package funr version 0.3.2 Index]