通过 R-CMD-check 在 R Mac OS 中安装 rgl 包
Installing rgl package in R Mac OS via R-CMD-check
我的包的依赖项之一是 rgl 包。当我尝试通过 Github 操作和配置
进行 R-CMD 检查时
- {os: macOS-latest, r: 'release'}
通过
设置
usethis::use_github_action_check_standard()
我 运行 遇到了 rgl 包的问题(windows 没有问题)。确切的错误信息是:
Error in dyn.load(dynlib <- getDynlib(dir)) :
unable to load shared object '/Users/runner/work/_temp/Library/rgl/libs/rgl.so':
dlopen(/Users/runner/work/_temp/Library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
Referenced from: /Users/runner/work/_temp/Library/rgl/libs/rgl.so
Reason: image not found
Warning: Warning: Loading rgl's DLL failed.
This build of rgl depends on XQuartz, which failed to load.
See the discussion in
Warning: Warning: Trying without OpenGL...
ERROR: lazy loading failed for package ‘mzRAPP’
* removing ‘/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Rtmptc3xyB/Rinstc214f95c76f/mzRAPP’
-----------------------------------
ERROR: package installation failed
Error: Error in proc$get_built_file() : Build process failed
Calls: <Anonymous> ... build_package -> with_envvar -> force -> <Anonymous>
Execution halted
Error: Process completed with exit code 1.
这已在 Installing "rgl" package in R, Mac OSX El Captian and Package rgl in R not loading in Mac OS 中与不同的解决方案一起报告。但是,我看不出如何针对 Githubs Actions R-CMD-check 调整这些解决方案。有谁知道如何做到这一点?
解决方案是在 env:
部分设置 RGL_USE_NULL: true
,.. 感谢 @user2554330 (Package rgl in R not loading in Mac OS)
我的包的依赖项之一是 rgl 包。当我尝试通过 Github 操作和配置
进行 R-CMD 检查时- {os: macOS-latest, r: 'release'}
通过
设置usethis::use_github_action_check_standard()
我 运行 遇到了 rgl 包的问题(windows 没有问题)。确切的错误信息是:
Error in dyn.load(dynlib <- getDynlib(dir)) :
unable to load shared object '/Users/runner/work/_temp/Library/rgl/libs/rgl.so':
dlopen(/Users/runner/work/_temp/Library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
Referenced from: /Users/runner/work/_temp/Library/rgl/libs/rgl.so
Reason: image not found
Warning: Warning: Loading rgl's DLL failed.
This build of rgl depends on XQuartz, which failed to load.
See the discussion in
Warning: Warning: Trying without OpenGL...
ERROR: lazy loading failed for package ‘mzRAPP’
* removing ‘/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Rtmptc3xyB/Rinstc214f95c76f/mzRAPP’
-----------------------------------
ERROR: package installation failed
Error: Error in proc$get_built_file() : Build process failed
Calls: <Anonymous> ... build_package -> with_envvar -> force -> <Anonymous>
Execution halted
Error: Process completed with exit code 1.
这已在 Installing "rgl" package in R, Mac OSX El Captian and Package rgl in R not loading in Mac OS 中与不同的解决方案一起报告。但是,我看不出如何针对 Githubs Actions R-CMD-check 调整这些解决方案。有谁知道如何做到这一点?
解决方案是在 env:
部分设置 RGL_USE_NULL: true
,.. 感谢 @user2554330 (Package rgl in R not loading in Mac OS)