Mercurial > repos > greg > bmsb
view bmsb.R @ 18:c6668285a216 draft
Uploaded
author | greg |
---|---|
date | Tue, 16 Aug 2016 11:38:43 -0400 |
parents | a286e1d48b45 |
children | d965e188feab |
line wrap: on
line source
#!/usr/bin/env Rscript options_list <- list( make_option(c("-o", "--output"), action="store", help="Output dataset") ) parser <- OptionParser(usage="%prog [options] file", options_list) args <- parse_args(parser, positional_arguments=TRUE) opt <- args$options fileConn<-file(opt$output) writeLines(c("Hello World!"), fileConn) close(fileConn)