RGalaxy (version 1.16.2)

addTwoNumbersWithTest: Add two numbers (with functional test)

Description

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

Usage

addTwoNumbersWithTest(number1=GalaxyNumericParam(required=TRUE, testValues=5L), number2=GalaxyNumericParam(required=TRUE, testValues=5L), 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

Run this code
t <- tempfile()
addTwoNumbersWithTest(2, 2, t)
readLines(t, warn=FALSE)
runFunctionalTest(addTwoNumbersWithTest) ## should return TRUE

Run the code above in your browser using DataLab