|
1 | 1 | R News |
2 | 2 |
|
| 3 | +CHANGES IN R VERSION 2.13.1: |
| 4 | + |
| 5 | + NEW FEATURES: |
| 6 | + |
| 7 | + • iconv() no longer translates NA strings as "NA". |
| 8 | + |
| 9 | + • persp(box = TRUE) now warns if the surface extends outside the |
| 10 | + box (since occlusion for the box and axes is computed assuming |
| 11 | + the box is a bounding box). (PR#202.) |
| 12 | + |
| 13 | + • RShowDoc() can now display the licences shipped with R, e.g. |
| 14 | + RShowDoc("GPL-3"). |
| 15 | + |
| 16 | + • New wrapper function showNonASCIIfile() in package tools. |
| 17 | + |
| 18 | + • nobs() now has a "mle" method in package stats4. |
| 19 | + |
| 20 | + • trace() now deals correctly with S4 reference classes and |
| 21 | + corresponding reference methods (e.g., $trace()) have been added. |
| 22 | + |
| 23 | + • xz has been updated to 5.0.3 (very minor bugfix release). |
| 24 | + |
| 25 | + • tools::compactPDF() gets more compression (usually a little, |
| 26 | + sometimes a lot) by using the compressed object streams of PDF |
| 27 | + 1.5. |
| 28 | + |
| 29 | + • cairo_ps(onefile = TRUE) generates encapsulated EPS on platforms |
| 30 | + with cairo >= 1.6. |
| 31 | + |
| 32 | + • Binary reads (e.g. by readChar() and readBin()) are now supported |
| 33 | + on clipboard connections. (Wish of PR#14593.) |
| 34 | + |
| 35 | + • as.POSIXlt.factor() now passes ... to the character method |
| 36 | + (suggestion of Joshua Ulrich). [Intended for R 2.13.0 but |
| 37 | + accidentally removed before release.] |
| 38 | + |
| 39 | + • vector() and its wrappers such as integer() and double() now warn |
| 40 | + if called with a length argument of more than one element. This |
| 41 | + helps track down user errors such as calling double(x) instead of |
| 42 | + as.double(x). |
| 43 | + |
| 44 | + INSTALLATION: |
| 45 | + |
| 46 | + • Building the vignette PDFs in packages grid and utils is now part |
| 47 | + of running make from an SVN checkout on a Unix-alike: a separate |
| 48 | + make vignettes step is no longer required. |
| 49 | + |
| 50 | + These vignettes are now made with keep.source = TRUE and hence |
| 51 | + will be laid out differently. |
| 52 | + |
| 53 | + • make install-strip failed under some configuration options. |
| 54 | + |
| 55 | + • Packages can customize non-standard installation of compiled code |
| 56 | + via a src/install.libs.R script. This allows packages that have |
| 57 | + architecture-specific binaries (beyond the package's shared |
| 58 | + objects/DLLs) to be installed in a multi-architecture setting. |
| 59 | + |
| 60 | + SWEAVE & VIGNETTES: |
| 61 | + |
| 62 | + • Sweave() and Stangle() gain an encoding argument to specify the |
| 63 | + encoding of the vignette sources if the latter do not contain a |
| 64 | + \usepackage[]{inputenc} statement specifying a single input |
| 65 | + encoding. |
| 66 | + |
| 67 | + • There is a new Sweave option figs.only = TRUE to run each figure |
| 68 | + chunk only for each selected graphics device, and not first using |
| 69 | + the default graphics device. This will become the default in R |
| 70 | + 2.14.0. |
| 71 | + |
| 72 | + • Sweave custom graphics devices can have a custom function |
| 73 | + foo.off() to shut them down. |
| 74 | + |
| 75 | + • Warnings are issued when non-portable filenames are found for |
| 76 | + graphics files (and chunks if split = TRUE). Portable names are |
| 77 | + regarded as alphanumeric plus hyphen, underscore, plus and hash |
| 78 | + (periods cause problems with recognizing file extensions). |
| 79 | + |
| 80 | + • The Rtangle() driver has a new option show.line.nos which is by |
| 81 | + default false; if true it annotates code chunks with a comment |
| 82 | + giving the line number of the first line in the sources (the |
| 83 | + behaviour of R >= 2.12.0). |
| 84 | + |
| 85 | + • Package installation tangles the vignette sources: this step now |
| 86 | + converts the vignette sources from the vignette/package encoding |
| 87 | + to the current encoding, and records the encoding (if not ASCII) |
| 88 | + in a comment line at the top of the installed .R file. |
| 89 | + |
| 90 | + LICENCE: |
| 91 | + |
| 92 | + • No parts of R are now licensed solely under GPL-2. The licences |
| 93 | + for packages rpart and survival have been changed, which means |
| 94 | + that the licence terms for R as distributed are GPL-2 | GPL-3. |
| 95 | + |
| 96 | + DEPRECATED AND DEFUNCT: |
| 97 | + |
| 98 | + • The internal functions .readRDS() and .saveRDS() are now |
| 99 | + deprecated in favour of the public functions readRDS() and |
| 100 | + saveRDS() introduced in R 2.13.0. |
| 101 | + |
| 102 | + • Switching off lazy-loading of code _via_ the LazyLoad field of |
| 103 | + the DESCRIPTION file is now deprecated. In future all packages |
| 104 | + will be lazy-loaded. |
| 105 | + |
| 106 | + • The off-line help() types "postscript" and "ps" are deprecated. |
| 107 | + |
| 108 | + UTILITIES: |
| 109 | + |
| 110 | + • R CMD check on a multi-architecture installation now skips the |
| 111 | + user's .Renviron file for the architecture-specific tests (which |
| 112 | + do read the architecture-specific Renviron.site files). This is |
| 113 | + consistent with single-architecture checks, which use |
| 114 | + --no-environ. |
| 115 | + |
| 116 | + • R CMD build now looks for DESCRIPTION fields BuildResaveData and |
| 117 | + BuildKeepEmpty for per-package overrides. See ‘Writing R |
| 118 | + Extensions’. |
| 119 | + |
| 120 | + BUG FIXES: |
| 121 | + |
| 122 | + • plot.lm(which = 5) was intended to order factor levels in |
| 123 | + increasing order of mean standardized residual. It ordered the |
| 124 | + factor labels correctly, but could plot the wrong group of |
| 125 | + residuals against the label. (PR#14545) |
| 126 | + |
| 127 | + • mosaicplot() could clip the factor labels, and could overlap them |
| 128 | + with the cells if a non-default value of cex.axis was used. |
| 129 | + (Related to PR#14550.) |
| 130 | + |
| 131 | + • dataframe[[row,col]] now dispatches on [[ methods for the |
| 132 | + selected column (spotted by Bill Dunlap). |
| 133 | + |
| 134 | + • sort.int() would strip the class of an object, but leave its |
| 135 | + object bit set. (Reported by Bill Dunlap.) |
| 136 | + |
| 137 | + • pbirthday() and qbirthday() did not implement the algorithm |
| 138 | + exactly as given in their reference and so were unnecessarily |
| 139 | + inaccurate. |
| 140 | + |
| 141 | + pbirthday() now solves the approximate formula analytically |
| 142 | + rather than using uniroot() on a discontinuous function. |
| 143 | + |
| 144 | + The description of the problem was inaccurate: the probability is |
| 145 | + a tail probablity (‘2 _or more_ people share a birthday’) |
| 146 | + |
| 147 | + • Complex arithmetic sometimes warned incorrectly about producing |
| 148 | + NAs when there were NaNs in the input. |
| 149 | + |
| 150 | + • seek(origin = "current") incorrectly reported it was not |
| 151 | + implemented for a gzfile() connection. |
| 152 | + |
| 153 | + • c(), unlist(), cbind() and rbind() could silently overflow the |
| 154 | + maximum vector length and cause a segfault. (PR#14571) |
| 155 | + |
| 156 | + • The fonts argument to X11(type = "Xlib") was being ignored. |
| 157 | + |
| 158 | + • Reading (e.g. with readBin()) from a raw connection was not |
| 159 | + advancing the pointer, so successive reads would read the same |
| 160 | + value. (Spotted by Bill Dunlap.) |
| 161 | + |
| 162 | + • Parsed text containing embedded newlines was printed incorrectly |
| 163 | + by as.character.srcref(). (Reported by Hadley Wickham.) |
| 164 | + |
| 165 | + • decompose() used with a series of a non-integer number of periods |
| 166 | + returned a seasonal component shorter than the original series. |
| 167 | + (Reported by Rob Hyndman.) |
| 168 | + |
| 169 | + • fields = list() failed for setRefClass(). (Reported by Michael |
| 170 | + Lawrence.) |
| 171 | + |
| 172 | + • Reference classes could not redefine an inherited field which had |
| 173 | + class "ANY". (Reported by Janko Thyson.) |
| 174 | + |
| 175 | + • Methods that override previously loaded versions will now be |
| 176 | + installed and called. (Reported by Iago Mosqueira.) |
| 177 | + |
| 178 | + • addmargins() called numeric(apos) rather than |
| 179 | + numeric(length(apos)). |
| 180 | + |
| 181 | + • The HTML help search sometimes produced bad links. (PR#14608) |
| 182 | + |
| 183 | + • Command completion will no longer be broken if tail.default() is |
| 184 | + redefined by the user. (Problem reported by Henrik Bengtsson.) |
| 185 | + |
| 186 | + • LaTeX rendering of markup in titles of help pages has been |
| 187 | + improved; in particular, \eqn{} may be used there. |
| 188 | + |
| 189 | + • isClass() used its own namespace as the default of the where |
| 190 | + argument inadvertently. |
| 191 | + |
| 192 | + • Rd conversion to latex mis-handled multi-line titles (including |
| 193 | + cases where there was a blank line in the \title section). |
| 194 | + |
3 | 195 | CHANGES IN R VERSION 2.13.0: |
4 | 196 |
|
5 | 197 | SIGNIFICANT USER-VISIBLE CHANGES: |
@@ -42,7 +234,7 @@ CHANGES IN R VERSION 2.13.0: |
42 | 234 | • R colours are now defined to refer to the sRGB color space. |
43 | 235 |
|
44 | 236 | The PDF, PostScript, and Quartz graphics devices record this |
45 | | - fact. X11 (and Cairo) and Windows just assume that your screen |
| 237 | + fact. X11 (and cairo) and Windows just assume that your screen |
46 | 238 | conforms. |
47 | 239 |
|
48 | 240 | • system.file() gains a mustWork argument (suggestion of Bill |
@@ -112,9 +304,6 @@ CHANGES IN R VERSION 2.13.0: |
112 | 304 | • merge() and as.hclust() methods for objects of class "dendrogram" |
113 | 305 | are now provided. |
114 | 306 |
|
115 | | - • as.POSIXlt.factor() now passes ... to the character method |
116 | | - (suggestion of Joshua Ulrich). |
117 | | - |
118 | 307 | • The character method of as.POSIXlt() now tries to find a format |
119 | 308 | that works for all non-NA inputs, not just the first one. |
120 | 309 |
|
@@ -150,6 +339,8 @@ CHANGES IN R VERSION 2.13.0: |
150 | 339 | ‘internal’ functions .saveRDS() and .readRDS() made available for |
151 | 340 | general use. The dot-name versions remain available as several |
152 | 341 | package authors have made use of them, despite the documentation. |
| 342 | + readRDS() no longer wraps non-file connections in a call to |
| 343 | + gzcon(), for efficiency (see its documentation). |
153 | 344 |
|
154 | 345 | saveRDS() supports compress = "xz". |
155 | 346 |
|
@@ -292,7 +483,7 @@ CHANGES IN R VERSION 2.13.0: |
292 | 483 |
|
293 | 484 | • findClasses, getGeneric, findMethods and hasMethods are revised |
294 | 485 | to deal consistently with the package= argument and be consistent |
295 | | - with soft namespace policy for finding objects. |
| 486 | + with soft name space policy for finding objects. |
296 | 487 |
|
297 | 488 | • tools::Rdiff() now has the option to return not only the status |
298 | 489 | but a character vector of observed differences (which are still |
@@ -387,16 +578,19 @@ CHANGES IN R VERSION 2.13.0: |
387 | 578 | • file.copy(from, to) no longer regards it as an error to supply a |
388 | 579 | zero-length from: it now simply does nothing. |
389 | 580 |
|
390 | | - • rstandard.glm gains a type argument which can be used to request |
391 | | - standardized Pearson residuals. |
| 581 | + • rstandard.glm() gains a type argument which can be used to |
| 582 | + request standardized Pearson residuals. |
392 | 583 |
|
393 | 584 | • A start on a Turkish translation, thanks to Murat Alkan. |
394 | 585 |
|
395 | 586 | • .libPaths() calls normalizePath(winslash = "/") on the paths: |
396 | | - this helps (usually) present them in a user-friendly form and |
| 587 | + this helps (usually) to present them in a user-friendly form and |
397 | 588 | should detect duplicate paths accessed via different symbolic |
398 | 589 | links. |
399 | 590 |
|
| 591 | + • download.file() can be now used with external methods even if |
| 592 | + there are spaces in the URL or the target filename. |
| 593 | + |
400 | 594 | SWEAVE CHANGES: |
401 | 595 |
|
402 | 596 | • Sweave() has options to produce PNG and JPEG figures, and to use |
@@ -1118,12 +1312,12 @@ CHANGES IN R VERSION 2.12.1: |
1118 | 1312 | • Rendering raster images in PDF output was resetting the clipping |
1119 | 1313 | region. |
1120 | 1314 |
|
1121 | | - • Rendering of raster images on Cairo X11 device was wrong, |
| 1315 | + • Rendering of raster images on cairo X11 device was wrong, |
1122 | 1316 | particularly when a small image was being scaled up using |
1123 | 1317 | interpolation. |
1124 | 1318 |
|
1125 | | - With Cairo < 1.6, will be better than before, though still a |
1126 | | - little clunky. With Cairo >= 1.6, should be sweet as. |
| 1319 | + With cairo < 1.6, will be better than before, though still a |
| 1320 | + little clunky. With cairo >= 1.6, should be sweet as. |
1127 | 1321 |
|
1128 | 1322 | • Several bugs fixed in read.DIF(): single column inputs caused |
1129 | 1323 | errors, cells marked as "character" could be converted to other |
|
0 commit comments