R/unigd-package.R

Defines functions .onLoad

#' unigd: Universal graphics device
#'
#' Universal graphics device
#'
#' @name unigd-package
#' @useDynLib unigd, .registration=TRUE
"_PACKAGE"

.onLoad <- function(libname, pkgname) {
  unigd_ipc_open_()
}

#' @importFrom grDevices dev.list dev.off
.onUnload <- function (libpath) {
  ugd_close(all = TRUE)
  unigd_ipc_close_()
  library.dynam.unload("unigd", libpath)
}

Try the unigd package in your browser

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

unigd documentation built on April 3, 2025, 6:11 p.m.