R/hooks.R

Defines functions .onLoad

# We use `<<-` below to modify the package's namespace.
# We don't modify the global environment.
# This is so {ggplot2} can be Suggests instead of Imports
# Define object at build time
GeomOblicubes <- NULL
GeomOblicuboids <- NULL

.onLoad <- function(libname, pkgname) {
  if (requireNamespace("ggplot2", quietly = TRUE)) {
      # Modify object at load time
      GeomOblicubes <<- create_GeomOblicubes()
      GeomOblicuboids <<- create_GeomOblicuboids()
  }
}

Try the oblicubes package in your browser

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

oblicubes documentation built on Aug. 27, 2022, 5:05 p.m.