简体   繁体   English

通过 R-CMD-check 在 R Mac OS 中安装 rgl package

[英]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.

相关问题 Github Actions - R 包 R-CMD-Check &quot;PhantomJS not found&quot; - Github Actions - R package R-CMD-Check "PhantomJS not found" R 中的 Package rgl 在 Mac OS 中未加载 - Package rgl in R not loading in Mac OS Github 操作失败:为 R-CMD-Check 安装系统依赖项时,进程完成,退出代码为 1 - Github Action failing: Process completed with exit code 1 when installing system dependencies for R-CMD-Check 在Mac OS X上的R中加载“ rgl”软件包时出错 - Error while loading “rgl” package in R on mac os x 在R,Mac OSX El Captian中安装“rgl”软件包 - Installing “rgl” package in R, Mac OSX El Captian R-CMD-check GitHub Actions 工作流程在警告/注释上失败 - R-CMD-check GitHub Actions workflow failing on warnings/notes 如何在 Github 的 README 中添加 R-CMD-check state - How to add R-CMD-check state on README at Github R软件包RGL无法在具有MRAN的Mac上安装 - R package RGL fails to install on a Mac with MRAN Github 上的 R-CMD-check 失败,存在“配置”但不可执行——请参阅“R 安装和管理手册” - R-CMD-check on Github fails with 'configure' exists but is not executable -- see the 'R Installation and Administration Manual' 在Mac OS X el Capitan中安装新开发的R软件包 - Installing newly developed R package in mac OS X el Capitan
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM