R/aaa.r

Defines functions .onLoad

.pkgenv <- new.env(parent=emptyenv())

.onLoad<- function(libname, pkgname) {
  assign("curr_lang", "en_US", envir=.pkgenv)
  invisible(.Call('_hyphenatr_init', PACKAGE = 'hyphenatr',
        system.file("extdata/dicts/hyph_en_US.dic", package="hyphenatr")))
}

.onUnload <- function (libpath) {
  invisible(.Call('_hyphenatr_cleanup', PACKAGE = 'hyphenatr'))
  library.dynam.unload("hyphenatr", libpath)
}
hrbrmstr/hyphenatr documentation built on July 28, 2023, 8:03 p.m.