V8: Embedded JavaScript Engine
- CRAN: http://cran.r-project.org/web/packages/V8/index.html
- GitHub: https://github.com/jeroenooms/v8
- URL: https://code.google.com/p/v8/
> 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