R/zzz.R

Defines functions onLoad

.onLoad <- function(libname, pkgname) {
  vig_list = tools::vignetteEngine(name='knitr', package = 'knitr')
  vweave <- vig_list[['knitr::knitr']][c('weave')][[1]]
  vtangle <- vig_list[['knitr::knitr']][c('tangle')][[1]]
  tools::vignetteEngine(pkgname, weave = vweave, tangle = vtangle,
                        pattern = "[.]Rmd$", package = pkgname)
  #register_vignette_engines(pkgname)
}

USE_CXX1X = TRUE
rje42/rje documentation built on Aug. 15, 2017, 7:43 a.m.