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

dsDisconnect(conn, save = NULL)

Arguments

conn

An object inheriting from DSConnection-class.

save

Save DataSHIELD session in data repository with provided identifier string.

Examples

if (FALSE) {
con <- dsConnect(DSOpal::Opal(), "server1",
  username = "dsuser", password = "password", url = "https://opal-demo.obiba.org")
dsDisconnect(con)
}