R/ns-hooks.R

Defines functions is_attached .onAttach

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

  diveR_attach()
}

is_attached <- function(x) {
  paste0("package:", x) %in% search()
}

Try the diveR package in your browser

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

diveR documentation built on Sept. 29, 2021, 1:06 a.m.