On Fri, May 2, 2014 at 12:55 AM, Knut Krueger <r...@knut-krueger.de> wrote: > Hi to all > > > Authors@R: c(person("fooa","foob", role = c("aut","cre"), > email = "fooa.f...@fooc.de"), > person("foo1","foo2", role = c("ctb"), > email = "foo1.f...@foo3.de")) > Author: fooa foob, with contributions from foo1 foo2 > using r CMD check --as-cran .. (R 3.1 and Windows) I get an error > > Author field differs from that derived from Authors@R > Author: 'fooa foob, with contributions from foo1 foo2 > Authors@R: 'fooa foob [aut, cre], foo1 foo2 [ctb]' > > as I can see it is the same as in > http://cran.r-project.org/doc/manuals/R-exts.html#The-DESCRIPTION-file > > and additionally > > Both 'Author' and 'Maintainer' fields can be omitted if a suitable > 'Authors@R' field is given.
Yes, that passage in WRE is confusing/misleading, because it will give a NOTE with 'R CMD check --as-cran' [https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15470]. In order not to get that NOTE, you need to use: Authors@R: c(person("fooa","foob", role = c("aut","cre"), email = "fooa.f...@fooc.de"), person("foo1","foo2", role = c("ctb"), email = "foo1.f...@foo3.de")) Author: fooa foob [aut, cre], foo1 foo2 [ctb] The 'Author' field *must be the same* as the string generated by R from 'Authors@R'. > > is not working if the Author field is empty or missing it will give an > error Actually, you can drop the 'Author' field unless you need build your package on legacy versions of R. I think in R (>= 2.14.0), you can use the 'Authors@R' field by itself. Many package do that. Hope this helps, Henrik > > Kind regards Knut > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel