Last active
July 19, 2019 13:57
-
-
Save thoolihan/5a92ecfb05326b41f0fd62744eb839db to your computer and use it in GitHub Desktop.
Run `Rscript args.R` to see how R command line arguments work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
args <- commandArgs() | |
trailing_args <- commandArgs(trailingOnly = TRUE) | |
print(args) | |
writeLines("\n====Just Trailing====\n\n") | |
print(trailing_args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save as args.R and Run
Rscript args.R
to see how R command line arguments work