How to solve the error “ missing required header GL/gl.h” while installing the Package mvoutlier in R?

后端 未结 8 1131
囚心锁ツ
囚心锁ツ 2021-01-31 01:48

I am trying to install the package mvoutlier but following error occurs during installation:

install.packages(\"mvoutlier\")
configure: error: missi         


        
8条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 02:45

    I encountered an equivalent problem when testing a package that required 'rgl' on Travis. The problem is that the operating system lacks the necessary GL files on which the 'rgl' package draws.

    A thread at R-forge offers the ingenious solution of running apt-get install r-cran-rgl, which will pull in any of the GL dependencies not already present on the operating system. This seems simpler than second-guessing which specific dependency is missing, and it remains possible to install a more recent version of 'rgl' if required.

提交回复
热议问题