3

I've followed as many threads as I can on this to resolve, but no luck. Simply can't install R package "rgl". I have Upgraded Ubuntu server 16 to R version 3.3.1.

PuTTY X11 proxy: Unsupported authorisation protocol
Warning in rgl.init(initValue, onlyNULL) :
  RGL: unable to open X11 display
Warning: 'rgl_init' failed, running with rgl.useNULL = TRUE
* DONE (rgl)

I've tried these bits of advice: Error in installing rgl package error: installation of package ‘rgl’ had non-zero exit status

I have X11 working fine outside R: http://www.tomsitpro.com/articles/how-to-use-x11-forwarding,2-843.html

but still get the error above.

Thanks for any help,

S.

Community
  • 1
  • 1
suze1992
  • 165
  • 1
  • 12

2 Answers2

3

Ok, this seems to be solved. I was root, after exiting and using: sudo R

install.packages("rgl")

everything was ok. so it seems you must install as sudo, not root, for everything to go in the right place.

Thanks,

S.

suze1992
  • 165
  • 1
  • 12
1

I checked it. Everything seems to work properly... Rscript - screen

But in "related" here I see some questions about error in installing rgl. Take a look e.g. Error in installing rgl package

Community
  • 1
  • 1
aniusni
  • 59
  • 1
  • 6