sys.script: Get path of current script

Description Usage Source Examples

View source: R/sys_script.R

Description

Get path of current script

Usage

1

Source

http://stackoverflow.com/questions/1815606/rscript-determine-path-of-the-executing-script

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
## cat foo.R
## library(funr);sys.script()

## source("foo.R")

## Rscript foo.R


## End(Not run)

sahilseth/funr documentation built on March 10, 2021, 4:16 p.m.