R/zzz.R

Defines functions .onLoad `%||%`

#' @title Package Load and Unload Functions
#' @description Functions called when the package is loaded or unloaded.
#' @name zzz
#' @keywords internal
NULL

# Null-coalescing operator (base R 4.4+; defined here for R >= 4.1 compat)
`%||%` <- function(x, y) if (is.null(x)) y else x

.onLoad <- function(libname, pkgname) { # nocov start
  init_registries()
  register_builtin_shapes()
  register_builtin_layouts()
  register_builtin_themes()
  register_builtin_palettes()
} # nocov end

Try the cograph package in your browser

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

cograph documentation built on April 1, 2026, 1:07 a.m.