My DESCRIPTION file looks like this (showing only relevant part).
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
and R CMD build
completes fine. But, CRAN submission returns this NOTE:
* checking DESCRIPTION meta-information ... NOTE
Author field differs from that derived from Authors@R
Author: 'John Doe'
Authors@R: 'John Doe [aut, cre]'
Not sure what that's about. Anyway, checking documentation, it says:
Fields ‘Author’ and ‘Maintainer’ can be auto-generated from ‘Authors@R’, and may be omitted if the latter is provided.
So, I removed Author and maintainer. Now when I run R CMD check
locally:
* checking for file ‘./DESCRIPTION’ ... ERROR
Required fields missing or empty:
‘Author’ ‘Maintainer’
What's the best way to do this?
UPDATE
I removed Authors@R
and left Author
and Maintainer
as is. All local tests passed. But, CRAN complaints about this.
* checking CRAN incoming feasibility ... NOTE
Maintainer: 'John Doe <john.doe@email.com>'
But, I don't get this.
UPDATE
This issue has been documented here.