R/context.R

Defines functions get_context

#' @importFrom V8 new_context JS
get_context <- function(){
  ctx <- V8::new_context("window")
  ctx$source(system.file("js/underscore.js", package="daff"))
  ctx$source(system.file("js/daff.js", package="daff"))
  ctx$source(system.file("js/util.js", package="daff"))
  ctx
}
edwindj/daff documentation built on Feb. 16, 2024, 3:12 p.m.