R/loadDictionary.R

Defines functions loadDictionary

Documented in loadDictionary

#' Dictionary content loader
#'
#' Load the dictionary into global environment
#'
#' @return NULL
#'
#' @examples
#'
#' loadDictionary()
#'
#' @export


loadDictionary <- function(){
  pkgpath = system.file("complete.dic",package = "r2dictionary")
  load(pkgpath,envir = .GlobalEnv)
  eval(parse(text=paste0('assign(".loadedDictionary",TRUE,envir = .GlobalEnv)')))
}

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.