Skip to content

Instantly share code, notes, and snippets.

@bond-
Created October 7, 2015 13:27
Show Gist options
  • Save bond-/b627af6d215905de711a to your computer and use it in GitHub Desktop.
Save bond-/b627af6d215905de711a to your computer and use it in GitHub Desktop.
Accepting command line arguments in R script
# A sample R script that accpets command line argumenst
args <- commandArgs(trailingOnly = TRUE)
print(args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment