dsFetch {DSI}R Documentation

Get the raw result

Description

Wait for the result to be available and fetch the result from a previous assignment or aggregation operation that may have been run asynchronously, in which case it is a one-shot call. When the assignment or aggregation operation was not asynchronous, the result is wrapped in the object and can be fetched multiple times.

Usage

dsFetch(res)

Arguments

res

An object inheriting from DSResult-class.

See Also

Other DSResult generics: DSResult-class, dsGetInfo(), dsIsCompleted()

Examples

## Not run: 
con <- dsConnect(DSOpal::Opal(), "server1",
  username = "dsuser", password = "password", url = "https://opal-demo.obiba.org")
dsAssignExpr(con, "C", as.symbol("c(1, 2, 3)"))
res <- dsAggregate(con, as.symbol("length(C)"))
length <- dsFetch(res)
dsDisconnect(con)

## End(Not run)

[Package DSI version 1.6.0 Index]