File: onload.R

package info (click to toggle)
r-cran-jsonld 2.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 892 kB
  • sloc: javascript: 12,209; sh: 19; makefile: 13
file content (7 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
#' @importFrom V8 new_context
.onLoad <- function(lib, pkg){
  assign("ctx", V8::v8("window"), environment(.onLoad))
  ctx$source(system.file("js/jsonld.min.js", package = pkg))
  #ctx$source(system.file("js/es6-promise.js", package = pkg))
  ctx$source(system.file("js/wrappers.js", package = pkg))
}