29

I'm building an R package on Travis to share the integration status with users of the package. I have no errors but 8 warnings and I would like to ignore them for the moment. But travis considered the build a failure and returns the message on the last line of the R CMD check log:

Found warnings, treating as errors (as requested)

How to ignore warnings?

Paul Rougieux
  • 10,289
  • 4
  • 68
  • 110
  • 2
    Did the answer below address your problem? If so, please accept it so the question can be marked as answered. – cdeterman Feb 15 '16 at 17:25
  • Yes adding `warnings_are_errors: false` to `.travis.yml` did address my problem. The Travis build wasn't finished before I went home yesterday evening. The build is passing now. I accepted the answer. – Paul Rougieux Feb 16 '16 at 09:07

1 Answers1

30

All you need to do is have

warnings_are_errors: false

near the top of your .travis.yml file

Here is an example from one of my R packages.

cdeterman
  • 19,630
  • 7
  • 76
  • 100