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
redantman
On
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
- in R, recovering strings that have been converted to factors with factor()
- How to reinstall pandoc after removing .cabal?
- How do I code a Mixed effects model for abalone growth in Aquaculture nutrition with nested individuals
- How to save t.test result in R to a txt file?
- how to call function from library in formula with R type provider
- geom_bar define border color with different fill colors
- Different outcome using model.matrix for a function in R
- Creating a combination data.table in R
- Force specific interactions in Package 'earth' in R
- Output from recursive function R
- Extract series of observations from dataframe for complete sets of data
- Retrieve path of supplementary data file of developed package
- r package development - own function not visible for opencpu
- Label a dataset according to bins of a histogram
- multiply each columns of a matrix by a vector
Related Questions in MACOS-CATALINA
- "command not found: mongod" error despite updating PATH
- Install Ruby development tools for gem installation on OSX Catalina
- AppleScript Quick Action Services Shortcut issue - MacOS Catalina
- Opening a text file with no xattr gives "Operation not permitted" under macOS Catalina and Python 2
- SSH tunnelling in Catalina to use Screen Sharing (VNC)
- Service running on macOS cannot access files on attached volumes
- I am trying to install ruby-2.2.3 through rbenv build on mac os catalina but getting the following error
- How to have a fully functioning NavigationView in a .fullSizeContent window with SwiftUI
- Go programs won't run after MacOS Catalina upgrade
- Mac keyboard Option key emulation
- WidgetPreviewContext is not working in a framework
- How do I install homebrew on macOS? Error: > -bash: $: command not found
- How do I Install Unity 2D Extras on MacOS?
- node.js dyld: initializer function 0x0 not in mapped image for /usr/local/bin/node Abort trap: 6
- Installing git on macOS with Homebrew Error
Related Questions in RGL
- 'You must enable Javascript to view this page properly' error in shiny (R)
- How to export an interactive rgl 3D Plot to share or publish?
- How to set rgl label colors
- How to plot a plane from an equation in R
- Why is my 3D plot not showing up in R Studio plot viewer?
- Why do I need SVN to install rgl from github using install_github?
- R plot3d coloring
- Including a 3D interactive figure in html and static in word/pdf using knitr and rgl
- knitr and rgl: inconsistent size?
- How to close rgl X11 windows?
- How to create 2D slice plots from 3D data in R ?
- Help in using rgl package
- rgl installation in Mac: X11 not found
- Is it possible to create mesh3d objects without indices information?
- rgl: How to avoid moire effect in transparent 3D ellipsoids?
Related Questions in XQUARTZ
- XQuartz not working on OS X El Capitan + Error 127 on OnyX
- XQuartz quit unexpectedly
- R unable to load internet routines after upgrade to MacOS Sierra
- disable XQuartz and revert to mavericks's default x server
- How do I make Codeblocks work on macOS big sur?
- Xquartz ssh -X sessions: how to detach/reattach to persistent windows
- Problems finding X11 libraries trying to build another program on Mac
- X11 not working on Mac after Xcode 12.4 upgrade
- How to recover X11 connection without exiting R on remote server
- X2Go Client could not start X11 server. (macOS Catalina)
- CGWindowListCreateImage produces broken image
- Download XQuartz into Digital Ocean
- MacOS can't display an open3d window from remote server,GLX_ARB_create_context_profile is unavailable
- (PuTTY:27843): Gtk-WARNING **: 22:15:42.205: cannot open display:
- Package rgl in R not loading in Mac OS
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 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/Utilitiesfolder to the trash.rglby runningremove.packages("rgl")in R.org.xquartz.startx.plistfrom/Library/LaunchDaemonsand/Library/LaunchAgents.rgleither from CRAN or from source.If I'm wrong and that process doesn't work, this will almost certainly work as long as your
rglversion is at least 0.105.12 (but won't give you anyrglwindows):To see your displays, run the
rglwidget()function, and they'll display in a browser or the RStudio viewer pane.