dssCreatePseudoServers: Fake opal servers in R

Description Usage Arguments Details Value See Also

View source: R/pseudoNodes.R

Description

Create pseudo opal/datashield servers in the local session for fun and profit.

Usage

1
dssCreatePseudoServers(servers = 1, tie_first_to_GlobalEnv = FALSE)

Arguments

servers

either the number of servers or a vector containing their names

tie_first_to_GlobalEnv

a logical, should the first server session be the same as .GlobalEnv? See details.

Details

The function creates and returns a list object containing the local pseudo servers as elements. The names of the servers are either provided in the "servers" parameter or created as 'local1', 'local2' etc. Each "server" is an environment. If tie_first_to_GlobalEnv is set to TRUE, the first server in the list will be a reference to the global environment. This means that all the objects in .GlobalEnv will become available to datashield... methods. This object can be then passed as a surrogate "datasources" argument to any opal, dsBaseClient or dsSwissKnifeClient function. One caveat: when using dsBaseClient functions with a purely fake opals object the object *must* be passed in the "datasources" argument, otherwise the call will fail. Furthermore, we can obtain a mixed (real connections + pseudo connections) opal object by passing this object as first argument to datashield.login.

Value

a list containing the local "server" environments. This list can be used straight away as the "datasources" argument for various dsSwissKnife or datashield or opal functions. One caveat: the "datasources" becomes mandatory, the said functions will not be able to find it automatically in the enviroment.

See Also

datashield.login


IulianD/dsSwissKnifeClient documentation built on June 23, 2020, 4:38 p.m.