R/zzz.R

Defines functions .onLoad

gensim <- sklearn <- ldavis <- bi <- NULL

.onLoad <- function(...) {
  gensim <<- reticulate::import("gensim", delay_load = TRUE, convert = FALSE)
  sklearn <<- reticulate::import("sklearn", delay_load = TRUE, convert = FALSE)
  ldavis <<- reticulate::import("pyLDAvis", delay_load = TRUE, convert = FALSE)
  bi <<- reticulate::import_builtins()
}
news-r/gensimr documentation built on Jan. 9, 2021, 5:55 a.m.