R/onLoad.R

Defines functions .onLoad

# Server object available to web servers to set how they please.
# Must be set in onLoad. After that, they are locked.
Server <- NULL

.onLoad <- function(libpath, pkgname){
    if ('(embedding)' %in% names(getLoadedDLLs()) && 'rapache' %in% search()){
	sys.source(
	    file.path(libpath,pkgname,'servers','rApache.R'),
	    envir = asNamespace('Rook')
	)
    }
}

Try the Rook package in your browser

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

Rook documentation built on Nov. 10, 2022, 6:13 p.m.