R/onload.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  if (!interactive()) return()
  n_threads <- bpam_num_threads()
  if (n_threads == 1) {
    packageStartupMessage("banditpam: OpenMP not in effect!")
  } else {
    ## This erroneously reports hyperthreads too
    packageStartupMessage(sprintf("banditpam: using %d (hyper) threads.", n_threads))
  }
}

Try the banditpam package in your browser

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

banditpam documentation built on March 31, 2023, 9:10 p.m.