R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname = find.package("sentometrics"), pkgname = "sentometrics") {
  # CRAN note avoidance
  if (getRversion() >= "2.15.1")
    utils::globalVariables(
      c("value", "variable", "word_count", "w",
        "attrib", "feature", "id", "i", "wLex",
        "wFeat", "wTime", "x", "identifier",
        ".", "documents", "language", "nTokens",
        "lag", "sentence_id", "n", "pos", "neg")
    )
  invisible()
}

.onUnload <- function (libpath) {
  library.dynam.unload("sentometrics", libpath)
}
sborms/sentometrics documentation built on Aug. 21, 2021, 6:40 a.m.