R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname, ...) {
	if (isNamespaceLoaded("knitr") && "knit_engines" %in% getNamespaceExports("knitr")) {
		use_epoxy_knitr_engines()
	} else {
		setHook(packageEvent("knitr", "onLoad"), function(...) {
			use_epoxy_knitr_engines()
		})
	}

	if (requireNamespace("debugme", quietly = TRUE)) {
		debugme::debugme()
	}

	invisible()
}

Try the epoxy package in your browser

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

epoxy documentation built on Sept. 20, 2023, 1:06 a.m.