#' @import V8
#'
sesh <- NULL
.onLoad <- function(libname, pkgname) {
sesh <<- V8::v8()
# latest version of lib suitable for v8 use will be at https://unpkg.com/h3-js
sesh$source(system.file('js', 'h3-js.umd.js', package = pkgname))
# sesh$eval("Object.keys(h3)")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.