R/zzz.R

Defines functions .onDetach .onAttach

.onAttach <- function(libname, pkgname) {
  resourcer::registerResourceResolver(GDSFileResourceResolver$new())
  resourcer::registerResourceResolver(GA4GHResourceResolver$new())
  resourcer::registerResourceResolver(EGAhtsgetResourceResolver$new())
  options(pillar.sigfig = 3)
  resourcer::registerFileResourceGetter(Opal2FileResourceGetter$new())
  # resourcer::registerResourceResolver(EGAmetadataResourceResolver$new())
}

.onDetach <- function(libpath) {
  resourcer::unregisterResourceResolver("GDSFileResourceResolver")
  resourcer::unregisterResourceResolver("GA4GHResourceResolver")
  resourcer::unregisterResourceResolver("EGAhtsgetResourceResolver")
  # resourcer::unregisterResourceResolver("EGAmetadataResourceResolver")
}
isglobal-brge/dsOmics documentation built on Nov. 6, 2024, 1:28 a.m.