My system environment:
Mac OS 10.10.2
X11 (XQuartz 2.7.5)
R 3.1.2
When I load and use 'rgl' package, I get following error message.
> library("rgl",lib.loc="/Library/Frameworks/R.framework/Versions/3.1/Resources/library")
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: In fun(libname, pkgname) : error in rgl_init
> plot3d(x,y,z)
Error in rgl.open(useNULL) : rgl.open failed
What's the problem?