[Rd] Authors at R: and Author field
ligges at statistik.tu-dortmund.de
Fri May 2 20:41:21 CEST 2014
On 02.05.2014 19:07, Henrik Bengtsson wrote:
> On Fri, May 2, 2014 at 12:55 AM, Knut Krueger <rh at knut-krueger.de> wrote:
>> Hi to all
>> Authors at R: c(person("fooa","foob", role = c("aut","cre"),
>> email = "fooa.foob at fooc.de"),
>> person("foo1","foo2", role = c("ctb"),
>> email = "foo1.foo2 at 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 at R
>> Author: 'fooa foob, with contributions from foo1 foo2
>> Authors at R: 'fooa foob [aut, cre], foo1 foo2 [ctb]'
>> as I can see it is the same as in
>> and additionally
>> > Both 'Author' and 'Maintainer' fields can be omitted if a suitable
>> 'Authors at 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 at R: c(person("fooa","foob", role = c("aut","cre"), email =
> "fooa.foob at fooc.de"),
> person("foo1","foo2", role = c("ctb"), email =
> "foo1.foo2 at 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 at R'.
>> is not working if the Author field is empty or missing it will give an
> Actually, you can drop the 'Author' field
.. which is generated from Authors at R by R CMD build automatically ...
unless you need build your
> package on legacy versions of R. I think in R (>= 2.14.0), you can
> use the 'Authors at R' field by itself. Many package do that.
> Hope this helps,
>> Kind regards Knut
>> [[alternative HTML version deleted]]
>> R-devel at r-project.org mailing list
> R-devel at r-project.org mailing list
More information about the R-devel