R/zzz.R

Defines functions .onLoad

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

.onLoad <- function(libname, pkgname) {

  pkg.opt <- list(
    bigstatsr.cluster.type     = "PSOCK",
    bigstatsr.check.args       = TRUE,
    bigstatsr.block.sizeGB     = 1,
    bigstatsr.downcast.warning = TRUE,
    FBM.dir                    = tempdir()
  )

  toset <- !(names(pkg.opt) %in% names(.Options))
  if (any(toset)) options(pkg.opt[toset])
}

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

Try the bigstatsr package in your browser

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

bigstatsr documentation built on Oct. 14, 2022, 9:05 a.m.