【发布时间】:2020-05-28 00:29:59
【问题描述】:
我的说明文件如下所示(仅显示相关部分)。
Author: John Doe
Authors@R: person("John", "Doe", email = "john.doe@email.com",role = c("aut", "cre"))
Maintainer: John Doe <john.doe@email.com>
devtools::check()、R CMD check 和 R CMD build 可以正常完成。但是,CRAN 提交返回此注释:
* checking DESCRIPTION meta-information ... NOTE
Author field differs from that derived from Authors@R
Author: 'John Doe'
Authors@R: 'John Doe [aut, cre]'
不知道那是什么。无论如何,检查documentation,它说:
“Author”和“Maintainer”字段可以从“Authors@R”自动生成,如果提供了后者,则可以省略。
所以,我删除了作者和维护者。现在当我在本地运行 R CMD check 时:
* checking for file ‘./DESCRIPTION’ ... ERROR
Required fields missing or empty:
‘Author’ ‘Maintainer’
最好的方法是什么?
更新
我删除了 Authors@R 并保留了 Author 和 Maintainer 原样。所有本地测试都通过了。但是,CRAN 对此表示不满。
* checking CRAN incoming feasibility ... NOTE
Maintainer: 'John Doe <john.doe@email.com>'
但是,我不明白。
更新
此问题已记录在 here。
【问题讨论】: