R/zzz.R

Defines functions .onUnload .onLoad

################################################################################

.onLoad <- function(libname, pkgname) {
  options(
    bigreadr.nThread = max(parallelly::availableCores() - 1L, 1L)
  )
}

################################################################################

.onUnload <- function(libpath) {
  options(
    bigreadr.nThread = NULL
  )
}

################################################################################

Try the bigreadr package in your browser

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

bigreadr documentation built on Dec. 6, 2022, 5:08 p.m.