R/zzz.R

Defines functions .onLoad

NAMESPACE <- environment()

.onLoad <- function(libname, pkgname){
	options( detective = simple_detective )
	
	if( exists( ".httpd.handlers.env", tools <- asNamespace("tools") ) ){
		e <- get( ".httpd.handlers.env", tools )
		e[["highlight"]] <- highlight.httpd.handler
	}

	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 May 2, 2019, 4:58 p.m.