在 Travis 上构建 R 包,如何不将警告视为错误? [英] Building an R package on Travis, how not to treat warnings as errors?

查看:29
本文介绍了在 Travis 上构建 R 包,如何不将警告视为错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在在 Travis 上构建 R 包 以分享集成与包用户的状态.我没有错误,但有 8 个警告,我想暂时忽略它们.但是 travis 认为构建失败并在 R CMD 检查日志的最后一行返回消息:

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)

如何忽略警告?

推荐答案

您只需要拥有

warnings_are_errors: false

靠近 .travis.yml 文件的顶部

这是我的一个 R 包中的示例.

Here is an example from one of my R packages.

这篇关于在 Travis 上构建 R 包,如何不将警告视为错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆