[Rd] unsafe parsing of DESCRIPTION Authors maybe from R

Hervé Pagès hp@ge@@on@g|thub @end|ng |rom gm@||@com
Fri Apr 17 17:46:44 CEST 2026


On 17/04/2026 01:57, Ivan Krylov wrote:
> 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.

Indeed. I suppose the CRAN checks do not catch these errors because they 
take already-built tarballs.

Best,

H.


>
-- 
Hervé Pagès

Bioconductor Core Team
hpages.on.github using gmail.com



More information about the R-devel mailing list