R/zzz.r

Defines functions is_attached .onAttach

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

  crayon::num_colors(TRUE)
  finRes_attach()

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

}

is_attached <- function(x) {
  paste0("package:", x) %in% search()
}
bautheac/finRes documentation built on June 9, 2021, 12:22 a.m.