pkgdown icon indicating copy to clipboard operation
pkgdown copied to clipboard

Should pkgdown check DESCRIPTION validity

Open maelle opened this issue 3 years ago • 1 comments

Via https://github.com/r-lib/pkgdown/issues/2158#issuecomment-1185821705=

If a package DESCRIPTION has a wrong Authors field (without the @R) then the line

https://github.com/r-lib/pkgdown/blob/956f076f661eb2de9413f64ea24a580cf444466d/R/build-home-citation.R#L74

results in an error.

The error message is not clear.

Although that DESCRIPTION format might be rare, should pkgdown check the validity of the DESCRIPTION file before building?

maelle avatar Jul 20 '22 05:07 maelle

It could be a part of check_pkgdown() maybe.

maelle avatar Jul 20 '22 06:07 maelle

IMO this is out of scope for pkgdown. (Since you'll discover the problem when you do load_all())

hadley avatar Apr 11 '24 21:04 hadley