R/zzz.R

Defines functions .onLoad

# ON LOAD ----
# default threads to 2 for CRAN
# users will need to set threads
.onLoad <- function(libname, pkgname) {
  options("text2vec.mc.cores" = 2L)
}

# placeholder binding so testthat::local_mocked_bindings() can mock this base
# function in tests (R skips non-function bindings when resolving a call, so
# this does not change normal behavior)
requireNamespace <- NULL

Try the text2map package in your browser

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

text2map documentation built on Sept. 23, 2026, 5:07 p.m.