R/onLoad.R

Defines functions .onLoad

#Internal globals
# nocov start
.global = new.env(parent = emptyenv())
setPackageName('geohashTools', .global)

.onLoad <- function(libname, pkgname) {
  # 64-bit integer can fit lat&lon components in 5 bits per 2 units precision
  .global$GH_MAX_PRECISION = 25L
}
# nocov end

Try the geohashTools package in your browser

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

geohashTools documentation built on Oct. 22, 2023, 1:12 a.m.