Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 514 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 514 Bytes

r2r

Installation

devtools::install_github("vh-d/r2r")

Examples

First, start a server R session and run

library(r2r)
r2r::server()

Next, start a client R session and run:

library(r2r)
r2r::eval_remote(1+1)
r2r::do.call_remote("print", "Hello world!")
r2r::do.call_remote(print, "Hello world!", quote = TRUE)

r2r::eval_remote(a+b, data = list(a = 1, b = 2))
r2r::eval_remote(a <- 1, global = TRUE)
r2r::eval_remote(a+b, data = list(b = 20))