Rgl:> Error in rgl.clear (type, subscene = subscene): object 'rgl_clear' not found

Execution (R3.4, ubuntu 16.04, rgl 0.95.1441):

library(rgl)
    open3d()

returns:

Error in rgl.clear(type, subscene = subscene) : 
  object 'rgl_clear' not found

        x <- sort(rnorm(1000))
        y <- rnorm(1000)
        z <- rnorm(1000) + atan2(x, y)
        plot3d(x, y, z, col = rainbow(1000))

Error in currentSubscene3d() : object 'rgl_getsubsceneid' not found

How to fix it?

+4
source share
3 answers

Oh kai.

For some reason:

apt-get install r-cran-rgl

Don't install the latest package for this. (I am using an external repository supported by CRAN).

So, this needs to be solved in the old way:

apt-get install libglu1-mesa-dev

and then install rgl from the source. Voila.

+2
source

You probably recently upgraded R. After the upgrade, you need to reinstall the packages. An easy way to do this is

update.packages(checkBuilt = TRUE)
+4
source

, , :

R version 3.4.0 (2017-04-21) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.2 LTS

, OP, :

rgl.clear(type, subscene = subscene): 'rgl_clear'

Error in rgl.getcolorcount (): object 'rgl_getcolorcount' not found

Just in case, this helps someone else, which is fixed for me:

install.packages("rglwidget")
+2
source

Source: https://habr.com/ru/post/1675867/


All Articles