Mercurial > repos > greg > bmsb
comparison bmsb.R @ 27:79cef4a790cc draft
Uploaded
author | greg |
---|---|
date | Fri, 19 Aug 2016 14:52:00 -0400 |
parents | 641c4954c76c |
children | be7c61620bb1 |
comparison
equal
deleted
inserted
replaced
26:641c4954c76c | 27:79cef4a790cc |
---|---|
1 #!/usr/bin/env Rscript | 1 #!/usr/bin/env Rscript |
2 | 2 |
3 suppressPackageStartupMessages(library("optparse")) | 3 suppressPackageStartupMessages(library("optparse")) |
4 | 4 |
5 options_list <- list( | 5 options_list <- list( |
6 make_option(c("-i", "--input"), action="store", help="Input dataset") | 6 make_option(c("-n", "--input"), action="store", help="Input dataset") |
7 make_option(c("-o", "--output"), action="store", help="Output dataset") | 7 make_option(c("-o", "--output"), action="store", help="Output dataset") |
8 ) | 8 ) |
9 | 9 |
10 parser <- OptionParser(usage="%prog [options] file", options_list) | 10 parser <- OptionParser(usage="%prog [options] file", options_list) |
11 args <- parse_args(parser, positional_arguments=TRUE) | 11 args <- parse_args(parser, positional_arguments=TRUE) |