From 184fdacd39059231e6f41b8275bb0bc6c1a856dd Mon Sep 17 00:00:00 2001 From: boutinb Date: Thu, 21 Sep 2023 14:22:56 +0200 Subject: [PATCH] Fix rgl install on mac --- R/zzz.R | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 R/zzz.R diff --git a/R/zzz.R b/R/zzz.R new file mode 100644 index 0000000..6ecd0bf --- /dev/null +++ b/R/zzz.R @@ -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) + + } +}