rockr.session_switch {rockr}R Documentation

Switch R session

Description

Change the R session that is attached to the connection object. This allows to interact with a R session after another. Of course proper permission apply when executing R operations on this R session.

Usage

rockr.session_switch(conn, session)

Arguments

conn

A rockr connection object.

session

A R session object.

Value

Void

See Also

Other administration functions: rockr.log(), rockr.package_install(), rockr.package_rm(), rockr.packages_datashield(), rockr.packages_rm(), rockr.packages(), rockr.package(), rockr.restart(), rockr.sessions(), rockr.session(), rockr.start(), rockr.status(), rockr.stop(), rockr.version()

Examples

## Not run: 
conn <- rockr.connect(username='administrator', password='password',
                      url='https://rocker-demo.obiba.org')
# open several R sessions
rockr.open(conn)
rockr.open(conn)
sessions <- rockr.sessions(conn)
# switch to first one
rockr.session_switch(conn, sessions[[1]])
conn$session
rockr.close(conn)
# switch to 2nd one
rockr.session_switch(conn, sessions[[2]])
conn$session
rockr.close(conn)

## End(Not run)

[Package rockr version 1.0.0 Index]