Skip to content
Prev 10778 / 12125 Next

[R-pkg-devel] Properly referencing copied code

? Thu, 11 Jul 2024 20:58:53 +0000
DRC via R-package-devel <r-package-devel at r-project.org> ?????:
I think that the author information in the DESCRIPTION is about what
your package provides by itself, not everything that may end up in the
address space once the package is loaded. Since CRAN prefers
self-contained packages, we end up including them in our packages
(unless the third-party library is already very common and present in
RTools & macOS recipes & common GNU/Linux distros), which requires us
to specify their authors.
No.
I would expect most authors and contributors to be copyright holders
too, but it must be possible to contribute without providing patches
and becoming one. E.g. a project might recognise a tester and bug
reporter as a full author, but there is no code that they own any
copyright on.
If it's feasible to implement, omitting unused files from the tarball
is a good idea.
CRAN recognises inst/AUTHORS. Here's a recently released package with
no obvious problems that makes use of it:
https://CRAN.R-project.org/package=xlcharts

We should probably document it somewhere.