Search code examples
rtravis-cidevtools

R Package checking package dependencies ERROR in Travis-ci


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


Solution

  • 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