dsFetch: Get the raw result

dsFetchR 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.

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

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)

DSI documentation built on Oct. 6, 2022, 9:06 a.m.