R/zzz.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  # Check if X11 is available
  if (capabilities("X11")) {
    if (requireNamespace("tcltk", quietly = TRUE)) {
      packageStartupMessage("tcltk loaded successfully with X11 support.")
    } else {
      packageStartupMessage("tcltk is suggested but not installed.")
    }
  } else {
    packageStartupMessage("X11 not available, skipping tcltk.")
  }
}

Try the biopixR package in your browser

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

biopixR documentation built on April 4, 2025, 1:07 a.m.