Skip to content

Commit

Permalink
Fix rgl install on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
boutinb committed Sep 21, 2023
1 parent 0e75b05 commit e617189
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.onLoad <- function(libname, pkgname) {

if (jaspBase:::getOS() == "osx" &&
isTRUE(try(jaspBase::jaspResultsCalledFromJasp()))
) {

# based on https://stackoverflow.com/questions/68517734/how-to-install-the-rgl-package-in-macos-big-sur
options(rgl.useNULL = TRUE)

}
}

0 comments on commit e617189

Please sign in to comment.