R/bnstruct.R

Defines functions .onUnload .onLoad

#' @useDynLib bnstruct, .registration = TRUE
NULL

.onLoad = function(lib, pkg) 
{
  # library.dynam("bnstruct", package = pkg, lib.loc = lib)
	if( R.version$arch == "x86_64" )
		MAX_NODES <- 64
	else
		MAX_NODES <- 32

  assign(".bnstruct.env", new.env(), envir=parent.env(environment()))
  assign("bnstruct.log.indent.tracker", 0, envir = .bnstruct.env)
}#.ONLOAD

.onUnload = function(lib) 
{
  # library.dynam.unload("bnstruct", libpath = lib)
}#.ONUNLOAD

Try the bnstruct package in your browser

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

bnstruct documentation built on Dec. 1, 2022, 1:22 a.m.