remote_r: Run R commands on remote server

Description Usage Arguments Examples

View source: R/submitter.R

Description

Run R commands on remote server. Variables in the local envrioment can be transfered to the remote computer.

Usage

1
remote_r(remote, variables = list(), expression, ...)

Arguments

remote

(remote_server) The remote server information.

variables

(list) Variables that the expression relies on. Their content will be deparsed and transfered to the remote server.

expression

An expression to run on a remote server.

...

Passed to ssh_command

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
remote <- remote_server$new(server = "shell.somewhere.edu", user = "joeshmo", port = 345)
a = 1:10
f = function(x) {
  x = x + 2
  x*2
}
remote_r(remote, list(a, f), {
  a = a + 3
  f(a)
})

## End(Not run)

zachary-foster/qsubmitter documentation built on Nov. 27, 2020, 3:23 a.m.