dsFetch: Get the raw result

Description Usage Arguments See Also Examples

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.

\Sexpr[results=rd,stage=render]{DSI:::methods_as_rd("dsFetch")}

Usage

1
dsFetch(res)

Arguments

res

An object inheriting from DSResult-class.

See Also

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

Examples

1
2
3
4
5
6
7
8
9
## 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)

DSI documentation built on June 22, 2021, 5:06 p.m.