R/zzz.R

Defines functions .onUnload .onLoad

.onLoad <- function(libname, pkgname) {

	tcltk::tcl("source", system.file("tcltkSource", "math.tcl", package = pkgname))
	tcltk::tcl("source", system.file("tcltkSource", "statistics.tcl", package = pkgname))
	tcltk::tcl("source", system.file("tcltkSource", "switchboard_helpers.tcl", package = pkgname))

	if(!("azure" %in% as.character(tcltk::.Tcl("ttk::style theme names"))))
	  tcltk::tcl("source", system.file("tcltkSource", "azure_switchboard.tcl", package = pkgname))
	tcltk::.Tcl(paste("ttk::style theme use", "azure"))

}

.onUnload <- function(libpath)
{
	switchboard_close()
}

Try the switchboard package in your browser

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

switchboard documentation built on Oct. 9, 2021, 1:06 a.m.