R/zzz.R

Defines functions .onAttach is_attached

.onAttach <- function(...) {
  needed <- core[!is_attached(core)]
  if (length(needed) == 0)
    return()

  spatialverse_attach()
}

is_attached <- function(x) {
  paste0("package:", x) %in% search()
}
raybuhr/spatialverse documentation built on Nov. 5, 2019, 3:02 a.m.