Nothing
#!/usr/bin/env Rscript
## begin warning handler
withCallingHandlers({
library(methods) # Because Rscript does not always do this
options('useFancyQuotes' = FALSE)
suppressPackageStartupMessages(library("optparse"))
suppressPackageStartupMessages(library("RGalaxy"))
option_list <- list()
option_list$number1 <- make_option('--number1', type='numeric')
option_list$number2 <- make_option('--number2', type='numeric')
option_list$sum <- make_option('--sum', type='character')
opt <- parse_args(OptionParser(option_list=option_list))
suppressPackageStartupMessages(library(RGalaxy))
## function body not needed here, it is in package
params <- list()
for(param in names(opt))
{
if (!param == "help")
params[param] <- opt[param]
}
setClass("GalaxyRemoteError", contains="character")
wrappedFunction <- function(f)
{
tryCatch(do.call(f, params),
error=function(e) new("GalaxyRemoteError", conditionMessage(e)))
}
suppressPackageStartupMessages(library(RGalaxy))
do.call(addTwoNumbers, params)
## end warning handler
}, warning = function(w) {
cat(paste("Warning:", conditionMessage(w), "\n"))
invokeRestart("muffleWarning")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.