CLI-utils: Current CLI Information

Description Usage Arguments

Description

CLIfile returns the path to the current CLI script.

CLIargs returns the command line arguments in various format.

Usage

1
2
3
CLIfile(full = FALSE)

CLIargs(format = c("parsed", "raw", "cmd"), skip = NULL, args = NULL)

Arguments

full

logical that indicates if the full path should be returned. If FALSE (default), only the filename is returned.

format

output format of the arguments:

'parsed'

a list of pairs argument/value, where the values were parsed and processed according to each argument specification.

'raw'

same as 'parsed', but with values as passed to the command line (not working)

'cmd'

raw command line (not working)

skip

names of arguments to remove from the result

args

character vector of arguments (raw values). If NULL then the current command line arguments are used.


renozao/CLIR documentation built on May 27, 2019, 5:52 a.m.