R/6_zzz.R

Defines functions is_attached .onAttach

.onAttach <- function(...) {
  # needed <- core[!is_attached(core)]
  # if (length(needed) == 0)
  #   return()
  # 
  crayon::num_colors(TRUE)
  massstat_attach()
  # 
  # if (!"package:conflicted" %in% search()) {
  #   x <- massstat_conflicts()
  #   msg(massstat_conflict_message(x), startup = TRUE)
  # }
  packageStartupMessage(paste0("massstat ", massstat_version, " (", update_date, ')'))
}

is_attached <- function(x) {
  paste0("package:", x) %in% search()
}
jaspershen/massstat documentation built on March 14, 2024, 7:02 p.m.