code/script.R

#!/usr/bin/env Rscript

# Command line arguments can be read with commandArgs.
#
# Usage:
#
# ./script.R ex1 ex2 ex3
#

args <- commandArgs(trailingOnly = TRUE)

for (i in seq_along(args)) {
  cat(sprintf("Argument %d: %s", i, args[i]), sep = "\n")
}
nateaff/eeg-complex documentation built on May 14, 2019, 2:55 p.m.