R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
  # Force NULL device for all non-interactive sessions and when env var is set.
  # Do NOT wait for user preference because rgl may already be loading.
  if (!interactive() || identical(Sys.getenv("RGL_USE_NULL"), "TRUE")) {
    options(rgl.useNULL = TRUE, rgl.printRglwidget = FALSE)
  }
}

Try the molaR package in your browser

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

molaR documentation built on Nov. 8, 2025, 9:06 a.m.