R Package checking package dependencies ERROR in Travis-ci

拥有回忆 提交于 2019-12-24 01:56:05

问题


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


回答1:


I needed to update my .travis.yml file to load java, which the openNLP package requires.

I updated .travis.yml by adding

language: java

and

install:
  - sudo R CMD javareconf

The complete working version is at https://github.com/mjockers/syuzhet/blob/master/.travis.yml

Thanks to https://stackoverflow.com/users/1036500/ben



来源:https://stackoverflow.com/questions/28554105/r-package-checking-package-dependencies-error-in-travis-ci

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!