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
- How to make an R Shiny app with big data?
- How do I keep only specific rows based on whether a column has a specific value?
- Likert scale study - ordinal regression model
- Extract a table/matrix from R into Excel with same colors and stle
- How can I solve non-conformable arguments in R netmeta::discomb (Error in B.matrix %*% C.matrix)?
- Can raw means and estimated marginal means be the same ? And when?
- Understanding accumulate function when .dir is set to "backwards"
- Error in if (nrow(peaks) > 0) { : argument is of length zero Calls: CopywriteR ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution ha
- How to increase quality of mathjax output?
- Convert the time intervals to equal hours and fill in the value column
- How to run an R function getpoints() from IPDfromKM package in an R shiny app which in R pops up a plot that utilizes clicks to capture coordinates?
- Replace NA in list of dfs in certain columns and under certain conditions
- R and text on Cyrillic
- The ts() function in R is returning the correct start and frequency but not end value which is 1 and not 179
- TROUBLING with the "DROP_NA" Function
Related Questions in MACOS-CATALINA
- Why brew install shivammathur/php/[email protected] has got dependencies that has nothing to do with php (ninja, llvm, rust, ruby, vim) on MacOS Catalina
- Error Downloading MariaDB Server on MacOS 10.15 no-system-libs
- How to install Qt5 on MacOS Catalina
- Install libtensorflow universal binary via Homebrew
- hdiutil failing on macOS Catalina with a write error when creating a file on a network drive. The error does not happen on macOS mojave
- adb return 'Terminated: 15' on MACOS
- Couldn't resolve Mac error on VS2022 .NET MAUI
- Why do I get the "dyld: Library not loaded: @executable_path/../Python3" error when running jupyter notebook and how can i fix it?
- Emojis in NSStatusItem title are dark tinted when using Light Mode on Catalina
- Apt update returning error code on container
- Error when taking a screenshot of a very large window
- Installing RVM in macOS (Catalina) errors
- Prompt "can't exec xcodebuild Operation Not Permitted" after Upgraded Xcode to 12.4 with macOS Catalina 10.15.7
- Permission Error while creating new file in VS code
- configure: error: iconv does not support errno
Related Questions in RGL
- Control space between data lines in a 3D plot
- Displaying an updating network graph without reloading wireframe
- Callback behavior for objects with the same scene ID
- setUserCallbacks() to scene generated with newSubscene3d()
- How to use point shapes other than spheres in rgl?
- I can't get rgl to save snapshots or gifs
- Is the return value of cur3d() correct in this example?
- how to fix incorrect image saving as vector graphics in "rgl" package?
- rgl.setMouseCallbacks: Callbacks Cannot Restore Default Behavior
- Animate trajectory in a Shiny app without explicit controls
- How to change default position of RGL window in R?
- How to check/decide/segment whether a point is inside a 3d cone?
- How to change perspective in Rayshader RGL without a middle mouse button?
- planes3d expands and draws the area based on the sphere's radius
- Print an rgl plot from each iteration in a for loop to HTML in RMarkdown?
Related Questions in XQUARTZ
- Unable to run X11 applications remotely via XQuartz on a mac
- Playwright won't run in headed mode for MacOS (I have xquartz)
- Rcmdr error: what is this error and how do I fix it?
- OpenGL Rendering Issues with Ignition Gazebo in Docker on Mac Monterey
- Why R needs XQuartz, Xcode and Fortran?
- Is there a particular script to install fsl
- Makefiles for X11 project on macOS with xQuartz cannot find <X11/Xlib.h>
- How to download fsl
- x2go on mac -- need multiple x2go windows at the same time -- how?
- MacOS can't display an open3d window from remote server,GLX_ARB_create_context_profile is unavailable
- IntelliJ windows from Linux box displayed via ssh/X11 on MacOS illegible
- is there any way to take a screenshot of specific window on Mac?
- Bash script not returning output
- XQuartz: Can't Open Display Mac OS
- Headings not working in my R markdown 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/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.