[英]Installing rgl package in R Mac OS via R-CMD-check
One of the dependencies of my package is the rgl package.我的 package 的依赖项之一是 rgl package。 When I try to do a R-CMD-check via Github Actions with the config
当我尝试通过 Github Actions 使用配置进行 R-CMD 检查时
- {os: macOS-latest, r: 'release'}
as set up via通过设置
usethis::use_github_action_check_standard()
I am running into a problem with the rgl package (there is no problem for windows).我遇到了 rgl package 的问题(Windows 没有问题)。 The exact error message is:
确切的错误信息是:
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 https://stackoverflow.com/a/66127391/2554330
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.
This has already be reported together with different solutions in Installing "rgl" package in R, Mac OSX El Captian and Package rgl in R not loading in Mac OS . This has already be reported together with different solutions in Installing "rgl" package in R, Mac OSX El Captian and Package rgl in R not loading in Mac OS . However, I don't see how I could adapt those solutions for Githubs Actions R-CMD-check.
但是,我看不出如何将这些解决方案用于 Githubs Actions R-CMD-check。 Does anyone have an idea how this could be done?
有谁知道如何做到这一点?
The solution was to set RGL_USE_NULL: true
in the env:
section,.. thanks to @user2554330 ( Package rgl in R not loading in Mac OS )解决方案是在
env:
部分设置RGL_USE_NULL: true
,.. 感谢@user2554330( R 中的 Package rgl 未在 Mac OS 中加载)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.