R/zzz.R

Defines functions .onLoad .onAttach

# nocov start
.onAttach <- function(lib, pkg) {
  if (!has_7z()$yes) {
    packageStartupMessage("The 7-zip program is needed to unpack NHD downloads (http://www.7-zip.org/).")
  }

  # sf::sf_use_s2(FALSE)
}

.onLoad <- function(libname, pkgname) {
  nhd_plus_load <<- memoise::memoise(nhd_plus_load,
    cache = memoise::cache_memory())
}
# nocov end

Try the nhdR package in your browser

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

nhdR documentation built on Aug. 12, 2023, 9:06 a.m.