R/zzz.R

.onAttach = function( libname, pkgname ) {
  dbloc = Sys.getenv("CCLEDB_PATH")
  stopifnot(file.exists(dbloc))
  .ccleCon <<- dbConnect(SQLite(), dbloc)
  .ccleSrc <<- src_sqlite(dbloc)
  message("defined .ccleCon as connection to SQLite db")
  message("defined .ccleSrc as dplyr src, for tbl() processing")
  invisible(NULL)
}
vjcitn/ccleR6 documentation built on May 3, 2019, 6:14 p.m.