dsRestoreWorkspace: Restore a saved DataSHIELD R session (a workspace) into the...

dsRestoreWorkspaceR Documentation

Restore a saved DataSHIELD R session (a workspace) into the current DataSHIELD R session

Description

Restore a saved DataSHIELD R session from the remote data repository. When restoring a workspace, any existing symbol or file with same name will be overridden.

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

Usage

dsRestoreWorkspace(conn, name)

Arguments

conn

An object that inherits from DSConnection-class.

name

Name of the workspace

See Also

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

Examples

## Not run: 
con <- dsConnect(DSOpal::Opal(), "server1",
  username = "dsuser", password = "password", url = "https://opal-demo.obiba.org")
dsListWorkspaces(con)
dsRestoreWorkspace(con, "foo")
dsDisconnect(con)

## End(Not run)

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