R/ldccr-package.R

Defines functions .onLoad

#' @import dplyr
#' @import rlang
#' @importFrom utils download.file untar unzip globalVariables
#' @keywords internal
"_PACKAGE"

utils::globalVariables(c("where", "IPAdic", "IPAdicMatrixDef"))

#' Package internal environment
#' @noRd
.pkgenv <- rlang::env()

#' onLoad
#' @noRd
#' @param libname libname
#' @param pkgname pkgname
#' @keywords internal
.onLoad <- function(libname, pkgname) {
  rlang::env_bind(.pkgenv, "read_aozora" = memoise::memoise(read_aozora_impl()))
  rlang::env_bind(.pkgenv, "read_ldnws" = memoise::memoise(read_ldnws_impl()))
  rlang::env_bind(.pkgenv, "read_jrte_rte" = memoise::memoise(read_jrte_rte_impl()))
}
paithiov909/ldccr documentation built on Oct. 14, 2024, 3:44 a.m.