【发布时间】:2021-09-15 16:41:45
【问题描述】:
我正在开发一个名为 DescObs (https://github.com/MaaniBeigy/DescObs) 的 R 包。它从MBESS 导入conf.limits.nct 函数,该函数本身依赖于另一个名为gsl 的包。对于R CMD check 和在Travis 持续集成平台(https://travis-ci.org/MaaniBeigy/DescObs) 评估的Linux 机器上安装DescObs,它完全没有问题。不过,AppVeyorfails:
** libs
*** arch - i386
C:/Rtools/mingw_32/bin/gcc -I"c:/R/include" -DNDEBUG -I/include -O3 -Wall -std=gnu99 -mtune=generic -c airy.c -o airy.o
airy.c:1:29: fatal error: gsl/gsl_sf_airy.h: No such file or directory
#include <gsl/gsl_sf_airy.h>
^
compilation terminated.
make: *** [c:/R/etc/i386/Makeconf:208: airy.o] Error 1
ERROR: compilation failed for package 'gsl'
* removing 'c:/RLibrary/gsl'
Error in i.p(...) :
(converted from warning) installation of package 'gsl' had non-zero exit status
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted
Command exited with code 1
我也尝试了Building an R package that uses the GSL on Windows 中推荐的解决方案,但没有帮助。我还使用mingw-w64 和gcc-4.6.3 编译它,它们都显示相同的错误。
此外,我尝试通过- cmd: vcpkg install gsl:x64-windows 安装,但确实显示了同样的错误。在这里,你可以看到我的appveyor.yml。
你有什么想法吗?
【问题讨论】:
标签: r windows package gsl appveyor