R/zzz.R

Defines functions onLoad

##' @import devtools
NULL

.onLoad <- function(libname, pkgname) {
  pkglist <- list(
    c(name='sync.afs', url='nverno/sync.afs')
  )

  for(pkg in pkglist)
    if(!suppressWarnings(suppressPackageStartupMessages(
      require(pkg['name'], quietly=TRUE,character.only=TRUE)))) {
      devtools::install_github(pkg['url'])
      suppressPackageStartupMessages( library(pkg['name'],character.only=TRUE))
    }

  invisible()
}
nverno/dirs documentation built on May 23, 2017, 5:55 p.m.