view hello_world.R @ 2:fa71365e68b6 draft

Uploaded
author greg
date Mon, 15 Aug 2016 14:12:15 -0400
parents 65fb665f37e3
children f3737c086298
line wrap: on
line source

#!/usr/bin/env Rscript

suppressPackageStartupMessages(library("optparse"))


option_list <- list(
    make_option(c("-o", "--output"), action="store", help="Output dataset")
)

fileConn<-file(opt$output)
writeLines(c("Hello","World"), fileConn)
close(fileConn)