r - r 包的 travis-ci 构建
问题描述
我最近为我的在线课程构建了 R 包。但是,当我运行 travis-ci build 时,由于以下错误而停止:
https://github.com/AnoushiravanR/fars
ERROR: configuration failed for package ‘gert’
* removing ‘/home/travis/R/Library/gert’
Error in i.p(...) :
(converted from warning) installation of package ‘gert’ had non-zero exit status
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted
The command "Rscript -e 'deps <- remotes::dev_package_deps(dependencies = NA);remotes::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: ", paste(setdiff(deps$package, installed.packages()), collapse=", ")); q(status = 1, save = "no")}'" failed and exited with 1 during .
Your build has been stopped.
如果您能给我一些有关如何通过此测试的提示,我将不胜感激。我还在我的包上运行 R cmd check,我收到的唯一警告如下:
WARNING
'qpdf' is needed for checks on size reduction of PDFs
然而,这个检查也停止了。
我也会留下我的github包地址:
解决方案
我将这些行添加到我的.travis.yml
并通过了我的 travis 构建:
addons:
apt:
packages:
- libgit2-dev
推荐阅读
- python - ModuleNotFoundError:运行 Pyinstaller 时没有名为 PIL 的模块
- r - 比较两个数据帧之间的纬度和经度
- swift - 如何更改 Xcode 为每个堆栈创建单独的预览?
- python - Python:AttributeError:模块'kubernetes'没有属性'config'
- vimeo - vimeo API 如何进行批量请求
- reactjs - 如何生成动态 React 标记
- node.js - 公牛在第一次之后没有增加新的工作
- vue.js - 如何将本地存储值传递给控制器 laravel?
- android - 如何为提示和错误文本应用不同的颜色 | 材料设计文本字段
- awk - 如何循环遍历数组的所有子集?