get.Rshare: Accessing the Rshare shared environment

Description Usage Arguments See Also Examples

View source: R/utilities.R

Description

Access to the Rshare environment is parameterized by the port number on which the Rshare server is run. If Rshare has not been initialized in the current R session, these functions will just access the local Rshare environment. Other than the lack of any envir argument and the addition of port and timeout arguments, these functions are analogous to their non-Rshare counterparts.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  get.Rshare(x, port = 7777, timeout = 10L, mode = "any",
    inherits = FALSE)

  assign.Rshare(x, value, port = 7777, inherits = FALSE)

  remove.Rshare(..., list = character(), port = 7777)

  exists.Rshare(x, port = 7777, mode = "any",
    inherits = FALSE)

  ls.Rshare(port = 7777, all.names = FALSE, ...)

  ls.str.Rshare(port = 7777, all.names = FALSE, ...)

  lsf.str.Rshare(port = 7777, all.names = FALSE, ...)

Arguments

port

the Rshare port number.

timeout

number of seconds to wait for a response from the Rshare server.

x

a variable name (given as a character string).

mode

the mode or type of object sought: see get.

inherits

should the enclosing frames of the environment be searched?

value

a value to be assigned to x.

...

see remove or lsf.str.

list

a character vector naming objects to be removed.

all.names

a logical value. If TRUE, all object names are returned. If FALSE, names which begin with a . are omitted.

See Also

get, assign, remove, exists, ls, ls.str, lsf.str

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# start Rshare server on port 7777 (the default)
startRshare()

# in different R session, start Rshare client, and access shared environment
startRshare()
assign.Rshare("mt",mtcars)
ls.Rshare()
get.Rshare("mt")

## End(Not run)

Rshare documentation built on May 2, 2019, 5:23 p.m.

Related to get.Rshare in Rshare...