dsHasSession: Check remote R session exists

dsHasSessionR Documentation

Check remote R session exists

Description

Check if a remote R session exists (not necessarily running and ready to accept R commands submissions).

Usage

dsHasSession(conn)

Arguments

conn

An object that inherits from DSConnection-class.

Value

A logical indicating if a remote R session exists accessible through this connection.

See Also

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

Examples

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

## End(Not run)

DSI documentation built on Nov. 5, 2025, 6:27 p.m.