This blog is updated daily.
A general description is here.
‘read.dcf()’ and ‘write.dcf()’ now treat DCF files (such as package
‘DESCRIPTION’ and repository ‘PACKAGES’ files) as UTF-8, as required by
the Debian control file format. ‘read.dcf()’ returns values in UTF-8
and ‘write.dcf()’ always writes UTF-8 regardless of the session locale;
bytes which are not valid UTF-8 are preserved by escaping them as
‘<xx>’ rather than being re-encoded via a ‘Encoding’ field. As a
consequence, the ‘useBytes’ argument of ‘write.dcf()’ is ignored, and
non-UTF-8 ‘DESCRIPTION’ files (e.g. those declaring ‘Encoding: latin1’)
are no longer re-encoded on reading.
DCF files such as package ‘DESCRIPTION’ and repository ‘PACKAGES’ files are now treated as UTF-8, as required by the Debian control file format. ‘read.dcf()’ and ‘write.dcf()’ substitute bytes which are not valid UTF-8 by hex codes (‘<xx>’). The ‘useBytes’ argument of ‘write.dcf()’ is ignored. An ‘Encoding’ field in the ‘DESCRIPTION’ file is no longer used to re-encode the other fields when installing the package.
Passing a name (rather than a character string) as ‘component’ to ‘model.extract()’, as in ‘model.extract(mf, weights)’, is deprecated. The warning recommends ‘model.response()’, ‘model.weights()’ or ‘model.offset()’ for those three components; ‘model.extract(mf, "weights")’ now also uses ‘model.weights()’. As suggested in r-dev-day issue #167 and reported as PR#19366 with analysis and patch by Ashish Tiwari.
Hexadecimal constants of subnormal numbers such as ‘c(0x1p-1024, 0x1p-1074)’ are correctly parsed now (instead of “underflowing” to ‘0’). Thanks to Kevin Ushey's report and patch in PR#19342.
‘read.dcf()’ now recognizes lines starting with ‘#’ as comment lines. By Dirk Eddelbuettel, Laurent Gatto and Hugo Gruson (PR#18903).
