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

…衆ロ難τιáo~ 提交于 2020-03-17 09:52:39

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/35412383/building-an-r-package-on-travis-how-not-to-treat-warnings-as-errors

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