Mercurial > repos > greg > r_hello_world
annotate hello_world.R @ 2:fa71365e68b6 draft
Uploaded
author | greg |
---|---|
date | Mon, 15 Aug 2016 14:12:15 -0400 |
parents | 65fb665f37e3 |
children | f3737c086298 |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env Rscript |
2 | |
3 suppressPackageStartupMessages(library("optparse")) | |
4 | |
5 | |
6 option_list <- list( | |
7 make_option(c("-o", "--output"), action="store", help="Output dataset") | |
8 ) | |
9 | |
2 | 10 fileConn<-file(opt$output) |
11 writeLines(c("Hello","World"), fileConn) | |
12 close(fileConn) | |
0 | 13 |
2 | 14 |