~hrbrmstr/uaparserjs

ref: 16171dd0e728450d2964de841afac5062f89f340 uaparserjs/R/zzz.r -rw-r--r-- 290 bytes
16171dd0hrbrmstr Merge branch 'master' of github.com:hrbrmstr/uaparserjs 1 year, 16 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.pkgenv <- new.env(parent=emptyenv())

.onLoad <- function(...) {

  ctx <- v8()
  ctx$source(system.file("js/bundle.js", package="uaparserjs"))
  ctx$eval(JS('var parser = uap(regexes)'))

  assign("ctx", ctx, envir=.pkgenv)

  cache <- list()

  assign("cache", cache, envir=.pkgenv)

}