R/zzz.R

Defines functions is_attached .onAttach

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

  crayon::num_colors(TRUE)
  psylisten_attach()

  if (!"package:conflicted" %in% search()) {
    x <- psylisten_conflicts()
    msg(psylisten_conflict_message(x), startup = TRUE)
  }

}

is_attached <- function(x) {
  paste0("package:", x) %in% search()
}
fmhoeger/psylisten documentation built on Sept. 1, 2020, 7:53 p.m.