| s2c {remoter} | R Documentation |
This function allows you to pass an object from the server to the local R session behind the client.
s2c(object, newname, env = .GlobalEnv)
object |
A remote R object. |
newname |
The name the object should take when it is stored on the local client's R session. If left blank, the local name will be the same as the original (remote) object's name. |
env |
The environment into which the assignment will take place. The default is the global environment. |
Localize R objects.
Returns TRUE invisibly on successful exit.
## Not run:
### Prompts are listed to clarify when something is eval'd locally vs remotely
> library(remoter)
> y
### Error: object 'y' not found
> remoter::connect("my.remote.server")
remoteR> x
### Error: object 'x' not found
remoteR> x <- "some data"
remoteR> x
### [1] "some data"
remoteR> s2c(x, "y")
remoteR> q()
> y
### [1] "some data"
## End(Not run)