R/zzz.R

# grab the namespace
.NAMESPACE <- environment()

# dummy module, will be replace later
mwls <- new( "Module" )

.onLoad <- function(pkgname, libname){
	# load the module and store it in our namespace
	unlockBinding( "mwls" , .NAMESPACE )
	assign( "mwls",  Module( "mwls" ), .NAMESPACE )
	lockBinding( "mwls", .NAMESPACE )
}

Try the wls package in your browser

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

wls documentation built on May 2, 2019, 6:09 p.m.