dsDisconnect: Disconnect (close) a connection

Description Usage Arguments See Also Examples

Description

This closes the connection, discards all pending work, and frees resources (e.g., memory, sockets).

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

Usage

1

Arguments

conn

An object inheriting from DSConnection-class.

save

Save DataSHIELD session in data repository with provided identifier string.

See Also

Other DSConnection generics: DSConnection-class, dsAggregate(), dsAssignExpr(), dsAssignResource(), dsAssignTable(), dsGetInfo(), dsHasResource(), dsHasTable(), dsIsAsync(), dsKeepAlive(), dsListMethods(), dsListPackages(), dsListProfiles(), dsListResources(), dsListSymbols(), dsListTables(), dsListWorkspaces(), dsRmSymbol(), dsRmWorkspace(), dsSaveWorkspace()

Examples

1
2
3
4
5
6
## Not run: 
con <- dsConnect(DSOpal::Opal(), "server1",
  username = "dsuser", password = "password", url = "https://opal-demo.obiba.org")
dsDisconnect(con)

## End(Not run)

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