I installed the rgl package (0.104.16) in R (3.6.3), but it does not load. I don't get any errors. It just never ends loading. I tried reinstalling R and RStudio and also Xquartz. Nothing is working. I have Mac OS Catalina version 10.15.7. Any help would be highly appreciated! Cheers
Package rgl in R not loading in Mac OS
17.6k Views Asked by Nolozz At
2
There are 2 best solutions below
0

I installed XQuartz 2.8.5, restarted my M1 Mac, and i could install and run the rayshader demo. the problem apparently was that rgl had x386 libraries but not ARM ones (or at least aliases to them), but installing the latest XQuartz fixed that without having to fiddle with removing files
Related Questions in R
- Migrate ClickOnce certificate from Sha1 to SHA256 and run on .NET 4.0 client machines
- Cruisecontrol failing after changing repository
- How to suppress warning output in CruiseControl.net
- Unit Tests results are not appearing on the cruise control dashboard
- Integration of Cruise Control.Net with Wix
- CruiseControl.Net: Run NUnit task with parameters
- C#/.Net code analysis report by TFS reports or Cruise Control.NET
- GIT - Get CruiseControl NET to Push to Origin
- CCnet - dynamic variable
- How to setup my environment so my continuous integration applied web.confg transformations and does not ovewrite the original web.config file?
Related Questions in MACOS-CATALINA
- Migrate ClickOnce certificate from Sha1 to SHA256 and run on .NET 4.0 client machines
- Cruisecontrol failing after changing repository
- How to suppress warning output in CruiseControl.net
- Unit Tests results are not appearing on the cruise control dashboard
- Integration of Cruise Control.Net with Wix
- CruiseControl.Net: Run NUnit task with parameters
- C#/.Net code analysis report by TFS reports or Cruise Control.NET
- GIT - Get CruiseControl NET to Push to Origin
- CCnet - dynamic variable
- How to setup my environment so my continuous integration applied web.confg transformations and does not ovewrite the original web.config file?
Related Questions in RGL
- Migrate ClickOnce certificate from Sha1 to SHA256 and run on .NET 4.0 client machines
- Cruisecontrol failing after changing repository
- How to suppress warning output in CruiseControl.net
- Unit Tests results are not appearing on the cruise control dashboard
- Integration of Cruise Control.Net with Wix
- CruiseControl.Net: Run NUnit task with parameters
- C#/.Net code analysis report by TFS reports or Cruise Control.NET
- GIT - Get CruiseControl NET to Push to Origin
- CCnet - dynamic variable
- How to setup my environment so my continuous integration applied web.confg transformations and does not ovewrite the original web.config file?
Related Questions in XQUARTZ
- Migrate ClickOnce certificate from Sha1 to SHA256 and run on .NET 4.0 client machines
- Cruisecontrol failing after changing repository
- How to suppress warning output in CruiseControl.net
- Unit Tests results are not appearing on the cruise control dashboard
- Integration of Cruise Control.Net with Wix
- CruiseControl.Net: Run NUnit task with parameters
- C#/.Net code analysis report by TFS reports or Cruise Control.NET
- GIT - Get CruiseControl NET to Push to Origin
- CCnet - dynamic variable
- How to setup my environment so my continuous integration applied web.confg transformations and does not ovewrite the original web.config file?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Edited to add new details and suggested fixes.
This appears to be due to problems in the 2.8.0beta version of Xquartz that was released in early February. There are two problems:
It makes incompatible changes to
libX11.6.dylib
, so programs (like the CRAN binaries ofrgl
) that were built for the 2.7.11 release will not work. If you buildrgl
(and everything else that uses X11) from source, it may be okay -- it was for me.When you uninstall it, it leaves behind two programs that run at startup:
/Library/LaunchDaemons/org.xquartz.startx.plist
(runs when you reboot your system) and/Library/LaunchAgents/org.xquartz.startx.plist
(runs when you login). If you then install 2.7.11, these will fail to run (probably because of the libX11 change mentioned above). At that point, nothing in X11 works.So the solution appears to be:
Applications/Utilities
folder to the trash.rgl
by runningremove.packages("rgl")
in R.org.xquartz.startx.plist
from/Library/LaunchDaemons
and/Library/LaunchAgents
.rgl
either from CRAN or from source.If I'm wrong and that process doesn't work, this will almost certainly work as long as your
rgl
version is at least 0.105.12 (but won't give you anyrgl
windows):To see your displays, run the
rglwidget()
function, and they'll display in a browser or the RStudio viewer pane.