Skip to content

Commit

Permalink
rgl::rgl.useNULL(TRUE) if not interactive excecution (for CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenarab committed Oct 30, 2024
1 parent 6834960 commit 34bb027
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#' @param pkgname The package name
#' @noRd
.onLoad <- function(libname, pkgname) {
if (interactive() == FALSE) {
rgl::rgl.useNULL(TRUE)
}
setPackageEnvir(variable.name = "RpolyhedraEnv", new.env(parent = asNamespace("Rpolyhedra")))

# package version db
Expand Down

0 comments on commit 34bb027

Please sign in to comment.