R/zzzz.R

Defines functions .onAttach .onLoad

.onLoad <- function(libname, pkgname) {
  # clear the environment of previous stores
  if(exists(".loadedDictionary"))rm(.loadedDictionary)
  if(!isDictionaryLoaded()){
    loadDictionary()
  }
}

.onAttach <- function(libname, pkgname) {
  # deliver a welcoming message, very important
  packageStartupMessage("\nr2dictionary: a mini-dictionary for english words")
}

Try the r2dictionary package in your browser

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

r2dictionary documentation built on July 26, 2023, 5:34 p.m.