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")
}
VPetukhov/dropEstAnalysis documentation built on Dec. 28, 2019, 8:16 p.m.