r-Travis CI在pkg配置搜索路径中找不到软件包



我最近开始在Travis CI上的12月中旬之后更新的各种R包上遇到同样的错误(https://travis-ci.org/TGuillerme/)。这特别奇怪,因为对于三个相关的包,更改并不是任何代码更改(只是注释更改),但Travis CI现在似乎无法使用一个非常简单的.yml文件来安装一些包(即magicklibgit2),该文件运行包,codecov用于覆盖:

language: r
warnings_are_errors: false
branches:
only:
- master
- release
except:
- CRAN
# Code coverage
r_packages:
- covr
after_success:
- Rscript -e 'library(covr); codecov(token = "5f041826-63f1-47fa-b4a8-9a32633f47fa")'

在这种情况下,我得到的错误(尽管它因不同的包而异)是magick包:

** package ‘magick’ successfully unpacked and MD5 sums checked
Package Magick++ was not found in the pkg-config search path.
Perhaps you should add the directory containing `Magick++.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Magick++' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lMagick++-6.Q16

行2625-2631

在此之前还有一条可疑消息:

Unable to find the libgit2 library on this system. Building 'git2r'
using the bundled source of the libgit2 library.

第1563-1564行

有什么明显的东西是我遗漏的吗?有没有办法强制Travis CI自动安装错误的软件包?

同样,这对我来说特别奇怪,因为提交的运行代码更改与上次无错误运行的构建没有什么不同。

我已经能够通过从二进制文件中安装包来解决类似的问题。

以下内容可能有助于.travis.yml:

r_binary_packages:
- libgit2
- magick

最新更新