Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

r

rgl

Doing (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 this?

like image 316
user189035 Avatar asked Feb 04 '23 13:02

user189035


1 Answers

You have probably recently upgraded R. After an upgrade, you need to reinstall packages. An easy way to do so is

update.packages(checkBuilt = TRUE)
like image 87
user2554330 Avatar answered May 01 '23 01:05

user2554330