R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
    tglkmeans.set_parallel(pmax(1, round(parallel::detectCores() * 0.75)))
    utils::suppressForeignCheck(c("clust", "new_clust", "true_clust", "intra_clust_order", "idx", ":=", "id"))
    utils::globalVariables(c("clust", "new_clust", "true_clust", "intra_clust_order", "idx", ":=", "id"))
}

Try the tglkmeans package in your browser

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

tglkmeans documentation built on Jan. 14, 2026, 9:08 a.m.