Mercurial > repos > greg > r_hello_world
changeset 0:304377330941 draft
Uploaded
author | greg |
---|---|
date | Mon, 15 Aug 2016 13:33:07 -0400 |
parents | |
children | 65fb665f37e3 |
files | hello_world.R hello_world.xml |
diffstat | 2 files changed, 39 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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) +
--- /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 @@ +<?xml version="."?> +<tool id="r_hello_world" name="R hello world" version="1.0.0"> + <description></description> + <requirements> + <requirement type="package" version="3.3.1">r-base</requirement> + <requirement type="package" version="1.3.0">r-optparse</requirement> + </requirements> + <command> + <![CDATA[ + Rscript $__tool_directory__/bmsb.R + -o "$output" + ]]> + </command> + <inputs> + </inputs> + <outputs> + <data name="output" format="RData"/> + </outputs> + <help> +**What it does** + +Prints hello workd. + </help> + <citations> + <citation></citation> + </citations> +</tool>