R/onload.R

Defines functions .onLoad

#' @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))
}

Try the jsonld package in your browser

Any scripts or data that you put into this service are public.

jsonld documentation built on July 8, 2020, 6:07 p.m.