R/NlistCategories.R

Defines functions NlistCategories

Documented in NlistCategories

##
## XML-RPC method: listCategories()
##
NlistCategories <- function(convert = TRUE, nc = CreateNeosComm()){
    if(requireNamespace("XMLRPC", quietly = TRUE)) {
        if(!(class(nc) == "NeosComm")){
            stop("\nObject provided for 'nc' must be of class 'NeosComm'.\n")
        }
        call <- match.call()
        ans <- XMLRPC::xml.rpc(url = nc@url, method = "listCategories",
                               .convert = convert, .opts = nc@curlopts, .curl = nc@curlhandle)
        if(convert){
            ans <- paste(names(ans), as.character(ans), sep = ": ")
        }
        res <- new("NeosAns", ans = ans, method = "listCategories", call = call, nc = nc)
        return(res)
    } else {
        stop("Package 'XMLRPC' not available, please install first from Omegahat.")
    }
}

Try the rneos package in your browser

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

rneos documentation built on May 31, 2017, 3:11 a.m.