R包检查Travis-ci中的包依赖关系错误 [英] R Package checking package dependencies ERROR in Travis-ci
问题描述
我的程序包通过devtools :: check()通过了本地测试,但是无法使用Travis构建( https: //travis-ci.org/mjockers/syuzhet )。 Travis报告正在检查程序包依赖性...错误,因为openNLP程序包是必需的但不可用。将包提供给Travis的诀窍是什么?软件包在这里: https://github.com/mjockers/syuzhet
My package passes local tests with devtools::check(), but fails to build with Travis (https://travis-ci.org/mjockers/syuzhet). Travis reports a "checking package dependencies ... ERROR" because the openNLP Package is required but not available. What is the trick to making the package available to Travis? Package is here: https://github.com/mjockers/syuzhet
推荐答案
我需要更新.travis.yml文件以加载java,这是 openNLP
程序包所需的。
I needed to update my .travis.yml file to load java, which the openNLP
package requires.
我通过添加
language: java
和
install:
- sudo R CMD javareconf
完整的工作版本位于 https://github.com/mjockers/syuzhet/blob/master/。 travis.yml
感谢 https:// stackoverflow。 com / users / 1036500 / ben
这篇关于R包检查Travis-ci中的包依赖关系错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!