R/onLoad.R

#' @importFrom V8 new_context
ct <- NULL
.onLoad <- function(libname, pkgname){
  ct <<- new_context();
  ct$source(system.file("js/minimist.min.js", package = pkgname))
}

Try the minimist package in your browser

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

minimist documentation built on May 2, 2019, 8:18 a.m.