R/onLoad.R

Defines functions onLoad

.onLoad <- function(libname, pkgname) {

  pkgd <- system.file(package = "toxboot")
  conf_file <- file.path(pkgd, "toxboot.config")

  if (file.exists(conf_file)) {

    toxbootConfLoad()

  } else {

    toxbootConfReset()
    toxbootConfLoad()

  }

}

Try the toxboot package in your browser

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

toxboot documentation built on Nov. 26, 2018, 1:04 a.m.