R/zzz.R

Defines functions .onDeatch .onAttach .onLoad

.onLoad <- function(lib, pkg){
  
}

.onAttach <- function(lib, pkg){
  #print(search())
  #print(set_opts)
  packageStartupMessage("Flowr: streamlining workflows")
  
  fl = file.path(path.expand("~"), ".flowr.conf")
  fls = c(fl, unique(unlist(sapply(c("flowr"), fetch_conf))))
  suppressMessages(opts_flow$load(fls, check = FALSE))
  #print(fls)
  
  if(opts_flow$get('verbose') > 1)
    packageStartupMessage("\nverbose level: 2 (debug mode)\nfollowing files are being loaded:\n", paste(fls, "\n"))
  
}


.onDeatch <- function(lib, pkg) {
  #ops <- options()
  #options(ops)
}

Try the flowr package in your browser

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

flowr documentation built on March 3, 2021, 1:12 a.m.