R/zzz.R

Defines functions .onLoad

#' @importFrom grDevices rgb postscript dev.off pdf
#' @importFrom tools vignetteEngine
#' @useDynLib highlight, .registration = TRUE
#' @importFrom grDevices col2rgb colors
#' @importFrom utils Rtangle RweaveChunkPrefix RweaveEvalWithOpt
#'   RweaveLatexFinish RweaveLatexOptions RweaveLatexSetup RweaveTryStop
#'   Sweave SweaveHooks getParseData tail
NULL

NAMESPACE <- environment()

.onLoad <- function(libname, pkgname){
	options( detective = simple_detective )

	vignetteEngine("highlight", weave = Hweave, tangle = Htangle,
        pattern = "[.][hHrRsS]nw$",
        package = "highlight")
}

Try the highlight package in your browser

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

highlight documentation built on Jan. 22, 2023, 1:38 a.m.