Created
April 24, 2014 19:11
-
-
Save nhoffman/11265997 to your computer and use it in GitHub Desktop.
An R script template
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
#!/usr/bin/env Rscript | |
suppressPackageStartupMessages(library(lattice, quietly = TRUE)) | |
suppressPackageStartupMessages(library(latticeExtra, quietly = TRUE)) | |
suppressPackageStartupMessages(library(argparse, quietly = TRUE)) | |
main <- function(arguments){ | |
parser <- ArgumentParser() | |
parser$add_argument('infile') | |
parser$add_argument('-o', '--outfile') | |
args <- parser$parse_args(arguments) | |
} | |
main(commandArgs(trailingOnly=TRUE)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment