[Rd] unsafe parsing of DESCRIPTION Authors maybe from R
Ivan Krylov
|kry|ov @end|ng |rom d|@root@org
Fri Apr 17 10:57:12 CEST 2026
On Fri, 17 Apr 2026 10:27:21 +0200
Kurt Hornik <Kurt.Hornik using wu.ac.at> wrote:
> However, the code is really only intended to complain but not throw
> check errors---how can one get the error?
Interesting. R CMD check works on an already-built tarball, because
.check_package_description() skips the 'Authors using R:' check when 'Author:'
and 'Maintainer:' are already present in the DESCRIPTION file. (Later
is why check_meta() calls
check_package_description_authors_at_R_field() by itself and produces
the NOTE.)
For a not-yet-built package, R CMD build calls
.check_package_description(), which now checks 'Authors using R:' by calling
.check_package_description_authors_at_R_field(), which fails the build.
Similarly, R CMD INSTALL on a not-yet-built package directory calls
.install_package_description, which also performs the check.
--
Best regards,
Ivan
More information about the R-devel
mailing list