R/onLoad.R

Defines functions .onLoad

ct <- NULL # nolint start
validate_geojson <- NULL
.onLoad <- function(libname, pkgname){
  validate_geojson <<- jsonvalidate::json_validator(
    system.file("schema/geojson.json", package = pkgname))
  ct <<- V8::v8();
  ct$source(system.file("js/geojsonhint.js", package = pkgname))
} # nolint end

Try the geojsonlint package in your browser

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

geojsonlint documentation built on Feb. 13, 2020, 9:06 a.m.