blob: 6131d7eaac365911276f8e7aef151b3b7fe859b3 [file] [log] [blame]
#!/usr/bin/Rscript
#
# This script takes two integers and returns their sum.
# Used to test the "int' data type(s) being passed from and to the
# Rscript operator for Malhar.
#
# num1 and num2 are passed as arguments by the client and retVal is the
# result returned by the script.
#
anInteger <- function() {
retVal<-sum(num1, num2)
return(retVal)
}