I'm sorry if this isn't the place for posting this kind of questions, but i've tried and googled everything and still i'm not able to find an answer.
I'm trying to plot ANYTHING in rgl from r, but when i do it, being the code anything, the 3d plot window appears just for one second and closes.
Im using OSX (El Capitan) and the last version of X11 (tried with stable and dev both).
I'm testing basic codes from everywhere, even the examples and the demo of the rgl package, but it's the same with all.
One example:
library(rgl)
open3d()
x <- sort(rnorm(1000))
y <- rnorm(1000)
z <- rnorm(1000) + atan2(x,y)
plot3d(x, y, z, col=rainbow(1000))
Any idea/advice?
As requested, the output added from devtools::session_info():
Session info -------------------------------------------------------------------
setting value
version R version 3.2.2 (2015-08-14)
system x86_64, darwin15.0.0
ui unknown
language (EN)
collate en_US
tz America/Santiago
Packages -----------------------------------------------------------------------
package * version date source
curl 0.9.3 2015-08-25 CRAN (R 3.2.2)
devtools * 1.8.0 2015-05-09 CRAN (R 3.2.2)
digest 0.6.8 2014-12-31 CRAN (R 3.2.2)
git2r 0.11.0 2015-08-12 CRAN (R 3.2.2)
memoise 0.2.1 2014-04-22 CRAN (R 3.2.2)
Rcpp 0.12.1 2015-09-10 CRAN (R 3.2.2)
rversions 1.0.2 2015-07-13 CRAN (R 3.2.2)
xml2 0.1.2 2015-09-01 CRAN (R 3.2.2)