downloadResult downloads the result of a processing request associated with jobId, such as from a t1Seg request.

downloadResult(object, jobId = "character", filename = "character",
  waitForJobToFinish = TRUE)

# S4 method for MriCloudR,character,character,logical
downloadResult(object,
  jobId = "character", filename = tempfile(fileext = ".zip"),
  waitForJobToFinish = TRUE)

# S4 method for MriCloudR,character,missing,logical
downloadResult(object,
  jobId = "character", filename = tempfile(fileext = ".zip"),
  waitForJobToFinish = TRUE)

Arguments

object

Object of class MriCloudR-class.

jobId

The jobId of the request, obtained from a processing request such as t1Seg

filename

Output filename for result.

waitForJobToFinish

TRUE or FALSE. If TRUE, downloadResult will wait until the job is finished and then download the result (default value is TRUE). If FALSE, it will attempt to download the result but will return if the job is not completed.

Value

TRUE if download successful. FALSE otherwise