V8: Embedded JavaScript Engine

> library(V8)

バージョン: 1.1


関数名 概略
JS Mark character strings as literal JavaScript code
V8 Run JavaScript in a V8 context

JS

> ct <- new_context()
> ct$eval("1+1")
[1] "2"
> ct$eval(JS("1+1"))
[1] "2"
> ct$assign("test", JS("2+3"))
> ct$get("test")
[1] 5