Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building an R package on Travis, how not to treat warnings as errors?

Tags:

r

travis-ci

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?

like image 602
Paul Rougieux Avatar asked Feb 15 '16 14:02

Paul Rougieux


1 Answers

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.

like image 172
cdeterman Avatar answered Nov 06 '22 10:11

cdeterman