首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >travis-ci为r包构建

travis-ci为r包构建
EN

Stack Overflow用户
提问于 2021-01-02 17:07:32
回答 1查看 51关注 0票数 0

我最近为我的在线课程构建了一个R包。然而,当我运行travis-ci build时,它由于以下错误而停止:

https://github.com/AnoushiravanR/fars

代码语言:javascript
复制
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,我收到的唯一警告如下:

代码语言:javascript
复制
WARNING
  'qpdf' is needed for checks on size reduction of PDFs

但是,此签入也会暂停。

我也会留下我的github包地址:

https://github.com/AnoushiravanR/fars

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-01-02 20:54:56

我将这些代码行添加到我的.travis.yml中,并通过了travis构建:

代码语言:javascript
复制
addons:
  apt:
    packages:
      - libgit2-dev
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65537489

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档