dssCreateFakeServers: Fake opal servers in R

Description Usage Arguments Details Value See Also

View source: R/overrides.R

Description

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

Usage

1
dssCreateFakeServers(opal_name, servers = 1, tie_first_to_GlobalEnv = FALSE)

Arguments

opal_name

required, a character. The name of a new list (created by the function a a side effect) containing the pseudo servers.

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 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 sever in the list will by a reference to the global environment. This means that all the objects in .GlobalEnv will become available to datashield... methods. Lastly, the function overrides datashield.login from the package opal.

Value

a vector containing the server names. This vector (or a subset) will be used by datashield.login as first parameter.

See Also

datashield.login


IulianD/dssSandbox documentation built on Dec. 26, 2019, 4:37 a.m.