# HG changeset patch # User greg # Date 1471282387 14400 # Node ID 304377330941d0887de88c32da2c9669c6a17ceb Uploaded diff -r 000000000000 -r 304377330941 hello_world.R --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hello_world.R Mon Aug 15 13:33:07 2016 -0400 @@ -0,0 +1,12 @@ +#!/usr/bin/env Rscript + +suppressPackageStartupMessages(library("optparse")) + + +option_list <- list( + make_option(c("-o", "--output"), action="store", help="Output dataset") +) + +line<-"Hello World" +base::save(line, file=opt$output) + diff -r 000000000000 -r 304377330941 hello_world.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hello_world.xml Mon Aug 15 13:33:07 2016 -0400 @@ -0,0 +1,27 @@ + + + + + r-base + r-optparse + + + + + + + + + + +**What it does** + +Prints hello workd. + + + + +