.kbCallRaw {KbaseKit}R Documentation

Calling the MG-RAST API Directly

Usage

.kbCallRaw(call, toFile = NULL)

Arguments

call
toFile

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (call, toFile = NULL) 
{
    if (0 == length(grep("?", call, fixed = TRUE))) 
        conj = "?"
    else conj = "&"
    urlStr <- paste(.kbGetServer(), call, conj, "auth=", .kbGetAuth(), 
        sep = "")
    message("KbaseKit: .kbCallRaw: ", urlStr)
    if (is.null(toFile)) 
        readLines(urlStr, warn = FALSE)
    else download.file(urlStr, toFile, quiet = TRUE)
  }

[Package KbaseKit version 0.9 Index]