我正在使用lintr包来检查我的包中的tidyverse编码标准是否不一致。然而,我正在处理的问题是,lintr包引发了每行超过80个字符的问题,即使在roxygen文档中也是如此,我不希望他检查。
例如,lintr包将通过error Lines should not be more than 80 characters为
#' @description This a description for very good function which does a lot of good things and it's not so long as this description。
我的问题是-如何在文档中忽略行超过80个字符的所有标记(我希望在处理正常代码时仍然对长行有注释)。
发布于 2021-05-26 19:59:05
我不认为lintr有那么好的控制水平(尽管我想你可以提交一个PR来做这件事)。但是没有必要有这么长的文档行;如果你在几行上格式化它,你的描述就会很好用,例如
#' @description
#' This a description for very good function which does a lot of good things
#' and it's not so long as this description.https://stackoverflow.com/questions/67703301
复制相似问题