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)
}

Try the hyphenatr package in your browser

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

hyphenatr documentation built on May 2, 2019, 5:58 a.m.