r-lib / desc

Manipulate DESCRIPTION files
https://desc.r-lib.org/
Other
122 stars 27 forks source link

The `normalize` argument of `$write()` #116

Closed jennybc closed 2 years ago

jennybc commented 3 years ago

I'm working on https://github.com/r-lib/usethis/issues/1504 in which we concluded that perhaps usethis should use $write() instead of $str().

On this journey, I discovered this discrepancy:

$write() is documented to have a normalize argument, but it does not actually seem to support this argument.

https://github.com/r-lib/desc/blob/daece0e5816e17a461969489bfdda2d50b4f5fe5/R/description.R#L154-L170

https://github.com/r-lib/desc/blob/daece0e5816e17a461969489bfdda2d50b4f5fe5/R/description.R#L472