Installing rgl on Ubuntu and Mac: X11 not found
All the mentioned answers are correct; however, none is for Mac.
In my case (I am a Mac user), I solved the problem by installing XQuartz and restarting R.
Error in loading rgl package with Mac OS X
I was having this problem with rgl 0.93.996 on OSX 10.9.2, but then after reinstalling several times I saw "Installing rgl - error: X11 not found but required, configure aborted"
A quick search took me here https://stat.ethz.ch/pipermail/r-sig-mac/2012-March/009077.html
Then I was finally able to get it to work by downloading XQuartz https://www.xquartz.org So it was X11 that was the problem in my case.
Installing rgl package in R Mac OS via R-CMD-check
The solution was to set RGL_USE_NULL: true
in the env:
section,.. thanks to @user2554330 (Package rgl in R not loading in Mac OS)
Related Topics
Stratified Random Sampling from Data Frame
Sum Rows in Data.Frame or Matrix
Create Counter Within Consecutive Runs of Certain Values
Can Lists Be Created That Name Themselves Based on Input Object Names
Create Grouping Variable For Consecutive Sequences and Split Vector
Generating All Distinct Permutations of a List in R
Categorize Numeric Variable into Group/ Bins/ Breaks
Looping Over a Date or Posixct Object Results in a Numeric Iterator
How to Plot Two Histograms Together in R
Pull Out P-Values and R-Squared from a Linear Regression
Adding Some Space Between the X-Axis and the Bars, in Ggplot
Error in Confusionmatrix the Data and Reference Factors Must Have the Same Number of Levels
How to Append a Sequential Number for Every Element in a Data Frame
Convert Categorical Variables to Numeric in R
Find Duplicated Elements With Dplyr
Create and Assign Multiple New Dataframe Columns in Ifelse Statement
How to Select Variables in an R Dataframe Whose Names Contain a Particular String