Dear Emacs, please make this -*-Text-*- mode! ************************************************** * * * 2.7 SERIES NEWS * * * ************************************************** CHANGES IN R VERSION 2.7.1 NEW FEATURES o tools::texi2dvi() has a new argument 'texinputs' to allow the TeX and bibtex input paths to be specified (even on MiKTeX). o dev.copy2pdf() gains an 'out.type' argument to allow it to be used with cairo_pdf() or quartz(type = "pdf"). o poly() has additional checks against user error (as in PR#11243). o The Mac OS quartz() device draws contiguous lines much faster. o A field containing just a sign is no longer regarded as numeric (it was on all platforms in 2.7.0, but not on most in earlier versions of R). Similarly, '.' is now always non-numeric. o CITATION files are now read in Latin-1: quite a few were failing if used in a multibyte locale such as UTF-8. o The DESCRIPTION file of a package can specify an 'OS_type' field as either 'unix' or 'windows' to confine installation to that OS type. o HoltWinters() now uses optimize() rather than optim for one-parameter problems which should be more reliable (PR#11469). o axis() now respects the setting of par("xpd") when clipping. o The 'factor' method of format() now preserves names, dims and dimnames in the same way as for character and numeric inputs. (PR#11512) o read.DIF(*, transpose=TRUE) now allows to correctly read DIF files produced by some versions of Excel. DEPRECATED & DEFUNCT o The use of unserialize() on character strings is deprecated: that was a format used in R < 2.4.0. o The use of embedded nuls in character strings is deprecated: They will no longer be allowed in R 2.8.0. UTILITIES o R CMD check checks for possible check directories in the sources -- in mid-2008 there were about 20 examples on CRAN. o R CMD build tries harder to clean up the inst/doc directory from the remnants of earlier builds. It also removes any directories with extension .Rcheck, and files .DS_Store and ._* (created by tar on Mac OS X under some circumstances: it now sets environment variables to ask for such files not to be created by that tar.) BUG FIXES o Encoding<- on NA_character_ converted it to "NA". o Adobe Symbol was missing from the encodings in tools::charset_to_Unicode. o diag(matrix(x, 0, 0)) now returns a 0-length vector of the correct mode, instead of always numeric. o The parser sometimes accepted invalid quoted strings in a UTF-8 locale. o plot.default(x, y) now dispatches to Axis() methods whether y is NULL or not. o On Mac OS X, the Cocoa Quartz window could close without warning under certain circumstances (specific autorelease pool flush). o Plotting symbols with separate border and fill colours (e.g., plot(pch = 21)) now works with transparent 'col', but opaque or semi-transparent 'bg'. Previously, if 'col' was transparent then 'bg' was ignored and nothing was drawn. o file.path() did not work correctly in 2.7.0 if the components had different encodings. o merge() failed if there were no common columns and one of the inputs had zero rows. o expand.grid() failed if an input had length 0. o match() does again truncate strings at embedded nuls (as newly documented in 2.7.0). o Because of a typo, 'pointsize' in png(type="cairo") (and jpeg, bmp, tiff) devices was being interpreted in pixels not bigpoints. o is() was wrong for some S3 class objects with class of length greater than one. o undoc() / codoc() were not checking all S4 methods in some cases. o Use of textConnection(NULL, mode="w") could segfault. o Use of strwidth/height(units="user") (the default) is again an error before a user coordinate system has been set on the device, rather than giving nonsensical values (the effect of r31367). o Rare string width calculations in package grid were not interpreting the string encoding correctly. o hasMethods(f, env) {without specified 'package'} now works better. o A missing PROTECT could cause segfaults on string comparisons. (PR#11421) o str(structure(1, classID = "Pooh")) now works fine. o A missing PROTECT could cause segfaults in if() if coercion of the condition was required or a warning was to be given. o plot(