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="V8"))
  ctx$source(system.file("js/daff.js", package="daff"))
  ctx$source(system.file("js/util.js", package="daff"))
  ctx
}

Try the daff package in your browser

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

daff documentation built on Oct. 9, 2023, 1:06 a.m.