R/NsubmitJob.R

Defines functions NsubmitJob

Documented in NsubmitJob

##
## XML-RPC method: submitJob()
##
NsubmitJob <- function(xmlstring, user = "rneos", interface = "", id = 0,
                       nc = CreateNeosComm()){
    if(!(class(nc) == "NeosComm")) {
        stop("\nObject provided for 'nc' must be of class 'NeosComm'.\n")
    }
    call <- match.call()
    ans <- xml.rpc(url = nc@url, method = "submitJob",
                   .args = list(xmlstring = xmlstring, user = user,
                                interface = interface, id = id),
                   .convert = TRUE, .opts = nc@curlopts, .curl = nc@curlhandle)
    res <- new("NeosJob", jobnumber = ans[[1]], password = ans[[2]],
               method = "submitJob", call = call, nc = nc)
    return(res)
}

Try the rneos package in your browser

Any scripts or data that you put into this service are public.

rneos documentation built on April 22, 2020, 3 p.m.