为什么 Travis CI 在传递 devtools::check() 时无法构建 b/c R 包不可用?
Why does Travis CI fail to build b/c R package is unavailable, while passing devtools::check()?
导致问题的软件包显然是 numbers
。我最好的猜测是因为数字是在旧版本的 R 下构建的(正如我在 R 中 library(numbers)
时收到的警告消息所示)。
但我对 Travis CI 和一般的 R 包还很陌生,所以我可能会遗漏一些东西。
我很困惑,不仅因为我可以使用 R 包 numbers
(OSX),还因为我的包通过了 devtools::check()
。我的包之前在 Travis 上传递过(当它只依赖于 ssh.utils
时),所以我很确定问题与 numbers
.
有某种关系
这条 Travis 错误消息是否与我要求 Travis 安装包的方式有关?我可以在我的 Travis yml 中更改设置以允许构建通过吗?任何帮助将不胜感激。
根据您的日志,包 gmp
安装失败,因为 Travis 系统没有安装 gmp:
* installing *source* package ‘gmp’ ...
** package ‘gmp’ successfully unpacked and MD5 sums checked
creating cache ./config.cache
checking for __gmpz_ui_sub in -lgmp... no
configure: error: GNU MP not found, or not 4.1.4 or up, see http://gmplib.org
ERROR: configuration failed for package ‘gmp’
* removing ‘/usr/local/lib/R/site-library/gmp’
安装方法见this answer,你可以添加代码:
sudo apt-get install libgmp3-dev
添加到您的 Travis 配置文件(未测试)。
导致问题的软件包显然是 numbers
。我最好的猜测是因为数字是在旧版本的 R 下构建的(正如我在 R 中 library(numbers)
时收到的警告消息所示)。
但我对 Travis CI 和一般的 R 包还很陌生,所以我可能会遗漏一些东西。
我很困惑,不仅因为我可以使用 R 包 numbers
(OSX),还因为我的包通过了 devtools::check()
。我的包之前在 Travis 上传递过(当它只依赖于 ssh.utils
时),所以我很确定问题与 numbers
.
这条 Travis 错误消息是否与我要求 Travis 安装包的方式有关?我可以在我的 Travis yml 中更改设置以允许构建通过吗?任何帮助将不胜感激。
根据您的日志,包 gmp
安装失败,因为 Travis 系统没有安装 gmp:
* installing *source* package ‘gmp’ ...
** package ‘gmp’ successfully unpacked and MD5 sums checked
creating cache ./config.cache
checking for __gmpz_ui_sub in -lgmp... no
configure: error: GNU MP not found, or not 4.1.4 or up, see http://gmplib.org
ERROR: configuration failed for package ‘gmp’
* removing ‘/usr/local/lib/R/site-library/gmp’
安装方法见this answer,你可以添加代码:
sudo apt-get install libgmp3-dev
添加到您的 Travis 配置文件(未测试)。