addTwoNumbers: Add two numbers

Description Usage Arguments Value See Also Examples

View source: R/test_functions.R

Description

An example function that can be made into a Galaxy tool. Takes two numbers, adds them, and returns a file containing the result.

Usage

1
2
3
addTwoNumbers(number1=GalaxyNumericParam(required=TRUE),
        number2=GalaxyNumericParam(required=TRUE),
        sum=GalaxyOutput("sum", "txt"))

Arguments

number1

The first number to add.

number2

The second number to add.

sum

Where the result of the addition should be written.

Value

invisible(NULL)

See Also

galaxy, GalaxyConfig, GalaxyOutput, addTwoNumbers

Examples

1
2
3
t <- tempfile()
addTwoNumbers(2, 2, t)
readLines(t, warn=FALSE)

Example output

Loading required package: XML
Loading required package: tools

Attaching package: 'tools'

The following object is masked from 'package:XML':

    toHTML

Loading required package: optparse
Loading required package: digest
[1] "4"

RGalaxy documentation built on Nov. 8, 2020, 7:42 p.m.