We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Rscript
Per @jangorecki in issue ticket #32 (and slightly edited)
argv <- if (!exists("argv")) commandArgs(TRUE) else as.character(argv) cat(str(argv)) q("no")
(Not sure this makes a lot of sense, actually, as exists("argv") is always TRUE for r. Consider:
exists("argv")
TRUE
r
edd@don:~$ r -e 'str(commandArgs(TRUE)); str(argv); print(exists("argv"))' chr(0) NULL [1] TRUE edd@don:~$
Oh well.)