R/hooks.R

Defines functions onLoad onUnload

.onLoad<-function(libname, pkgname){
	e<-emptyenv()
	library.dynam('gputools', pkgname, libname)
	reg.finalizer(e,function(...){unloadNamespace(pkgname)}, onexit=T)
}

.onUnload<-function(libpath){
	library.dynam.unload('gputools', libpath)
}

Try the gputools package in your browser

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

gputools documentation built on May 30, 2017, 1:52 a.m.