错误:"matlib"的包或命名空间加载失败



每次我运行库(matlib)时都会出现此错误:错误:' matlib '的包或命名空间加载失败:'rgl'的loadNamespace()中的. onload失败,详细信息:调用:rgl。init(initValue, onlyNULL)错误:OpenGL在此构建中不可用

library(matlib)
Registered S3 methods overwritten by 'rgl':
method               from
knit_print.rglId         
knit_print.rglOpen3d     
sew.rglRecordedplot      
Error in dyn.load(dynlib <- getDynlib(dir)) : 
unable to load shared object '/Users/nupur/Library/R/x86_64/4.1/library/rgl/libs/rgl.so':
dlopen(/Users/nupur/Library/R/x86_64/4.1/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
Referenced from: /Users/nupur/Library/R/x86_64/4.1/library/rgl/libs/rgl.so
Reason: image not found
Warning:    Loading rgl's DLL failed. 
This build of rgl depends on XQuartz, which failed to load.
See the discussion in https://stackoverflow.com/a/66127391/2554330
Warning: Trying without OpenGL...
Error: package or namespace load failed for ‘matlib’:
.onLoad failed in loadNamespace() for 'rgl', details:
call: rgl.init(initValue, onlyNULL)
error: OpenGL is not available in this build

在库(matlib)为我工作之前运行这个:

Sys.setenv(RGL_USE_NULL=TRUE)

相关内容

  • 没有找到相关文章

最新更新