Rev 57054 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\newcommand{\PR}{\Sexpr[results=rd]{tools:::Rd_expr_PR(#1)}}\name{NEWS}\title{R News}\encoding{UTF-8}\section{CHANGES IN R VERSION 2.13.2}{\subsection{NEW FEATURES}{\itemize{\item \code{mem.limits()} now reports values larger than themaximum integer (previously documented to be reported as\code{NA}), and allows larger values to be set, including\code{Inf} to remove the limit.\item The \code{print()} methods for classes \code{"Date"},\code{"POSIXct"} and \code{"POSIXlt"} respect the option\code{"max.print"} and so are much faster for very long datetimevectors. (Suggestion of Yohan Chalabi.)\item \code{untar2()} now works around errors generated with\code{tar} files that use more than the standard 6 digits for thechecksum. (\PR{14654})\item \code{install.packages()} with \code{Ncpus > 1} guardsagainst simultaneous installation of indirect dependencies as wellas direct ones.\item Sweave now knows about a few more Windows' encodings(including \code{cp1250} and \code{cp1257}) and some\code{inputenx} encodings such as \code{koi8-r}.\item \code{postscript(colormodel = "rgb-nogray")} no longer setsthe sRGB colorspace for each colour and so some viewers may renderits files much faster than the default \code{colormodel ="rgb"}.\item The default for \code{pdf(maxRasters=)} has been increasedfrom 64 to 1000.\item \code{readBin()} now warns if \code{signed = FALSE} is usedinappropriately (rather than being silently ignored).It enforces the documented limit of \eqn{2^{31}-1}{2^31-1} bytesin a single call.\item PCRE has been updated to version 8.13, a bug-fix releasewith updated Unicode tables (version 6.0.0). An additional patch(r611 from PCRE 8.20-to-be) has been added to fix a collationsymbol recognition issue.}}\subsection{INSTALLATION}{\itemize{\item It is possible to build in \file{src/extra/xdr} on moreplatforms. (Needed since glibc 2.14 hides its RPC implementation.)\item \command{configure} will find the Sun TI-RPC implementationof xdr (in \file{libtirpc}) provided its header files are in thesearch path: see the \sQuote{R Installation and AdministrationManual}.}}\subsection{PACKAGE INSTALLATION}{\itemize{\item Using a broad \code{exportPattern} directive in a\file{NAMESPACE} file is no longer allowed to export internalobjects such as \code{.onLoad} and \code{.__S3MethodsTable__.} .These are also excluded from imports, along with \code{.First.lib}.}}\subsection{BUG FIXES}{\itemize{\item \code{fisher.test()} had a buglet: If arguments were factorswith unused levels, levels were dropped and you would get an errorsaying that there should be at least two levels, inconsistentlywith pre-tabulated data. (Reported by Michael Fay).\item \code{package.skeleton()} will no longer dump S4 objectssupplied directly rather than in a code file. These cannot berestored correctly from the dumped version.\item Build-time expressions in help files did not have accessto functions in the package being built (with \command{R CMD build}).\item Because \code{quote()} did not mark its result as being inuse, modification of the result could in some circumstancesmodify the original call.\item Plotting \code{pch = '.'} now guarantees at least a one-pixeldot if \code{cex > 0}.\item The very-rarely-used command-line option\option{--max-vsize} was incorrectly interpreted as a number ofVcells and not in bytes as documented. (Spotted by ChristopheRhodes.)\item The HTML generated by \code{Rd2HTML()} comes closer tobeing standards compliant.\item \code{filter(x, recursive = TRUE)} gave incorrect results on aseries containing \code{NA}s. (Spotted by Bill Dunlap.)\item Profiling \code{stats::mle()} fits with a \code{fixed}parameter was not supported. (\PR{14646})\item \code{retracemem()} was still using positional matching.(\PR{14650})\item The \code{quantile} method for \code{"ecdf"} objects nowworks and is documented.\item \code{xtabs(~ .., ..., sparse=TRUE)} now also works togetherwith an \code{exclude = ..} specification.\item \code{decompose()} computed an incorrect seasonal component fortime series with odd frequencies.\item The \code{pdf()} device only includes the definition of thesRGB colorspace in the output file for the \code{"rgb"} colormodel(and not for \code{"gray"} nor \code{"cmyk"}): this saves ca9KB in the output file.\item \code{.hasSlot()} wrongly gave \code{FALSE} in some cases.\item \code{Sweave()} with \code{keep.source=TRUE} could generatespurious \code{NA} lines when a chunk reference appeared last ina code chunk.\item \samp{\Sexpr[results=rd]} in an \file{.Rd} file now first tries\code{parse_Rd(fragment=FALSE)} to allow Rd section-level macrosto be inserted.\item The \code{print()} method for class \code{"summary.aov"} didnot pass on arguments such as \code{signif.stars} when\code{summary()} was called on a single object. (\PR{14684})\item In rare cases \code{ks.test()} could return a p-valuevery slightly less than 0 by rounding error. (\PR{14671})\item If \code{trunc()} was called on a \code{"POSIXlt"} vectorand the result was subsetted, all but the first element wasconverted to \code{NA}. (\PR{14679})\item \code{cbind()} and \code{rbind()} could cause memorycorruption when used on a combination of raw and logical/integervectors.}}}\section{CHANGES IN R VERSION 2.13.1}{\subsection{NEW FEATURES}{\itemize{\item \code{iconv()} no longer translates \code{NA} strings as\code{"NA"}.\item \code{persp(box = TRUE)} now warns if the surface extendsoutside the box (since occlusion for the box and axes is computedassuming the box is a bounding box). (\PR{202}.)\item \code{RShowDoc()} can now display the licences shipped with\R, e.g. \code{RShowDoc("GPL-3")}.\item New wrapper function \code{showNonASCIIfile()} in package\pkg{tools}.\item \code{nobs()} now has a \code{"mle"} method in package\pkg{stats4}.\item \code{trace()} now deals correctly with S4 reference classesand corresponding reference methods (e.g., \code{$trace()})%$have been added.\item \command{xz} has been updated to 5.0.3 (very minor bugfixrelease).\item \code{tools::compactPDF()} gets more compression (usually alittle, sometimes a lot) by using the compressed object streams ofPDF 1.5.\item \code{cairo_ps(onefile = TRUE)} generates encapsulated EPSon platforms with cairo >= 1.6.\item Binary reads (e.g. by \code{readChar()} and \code{readBin()})are now supported on clipboard connections. (Wish of \PR{14593}.)\item \code{as.POSIXlt.factor()} now passes \code{...} to thecharacter method (suggestion of Joshua Ulrich). [Intended for \R2.13.0 but accidentally removed before release.]\item \code{vector()} and its wrappers such as \code{integer()}and \code{double()} now warn if called with a \code{length}argument of more than one element. This helps track down usererrors such as calling \code{double(x)} instead of\code{as.double(x)}.}}\subsection{INSTALLATION}{\itemize{\item Building the vignette PDFs in packages \pkg{grid} and\pkg{utils} is now part of running \command{make} from an SVNcheckout on a Unix-alike: a separate \command{make vignettes} stepis no longer required.These vignettes are now made with \code{keep.source = TRUE} andhence will be laid out differently.\item \command{make install-strip} failed under some configurationoptions.\item Packages can customize non-standard installation of compiledcode via a \code{src/install.libs.R} script. This allows packages thathave architecture-specific binaries (beyond the package's sharedobjects/DLLs) to be installed in a multi-architecture setting.}}\subsection{SWEAVE & VIGNETTES}{\itemize{\item \code{Sweave()} and \code{Stangle()} gain an \code{encoding}argument to specify the encoding of the vignette sources if thelatter do not contain a \samp{\\usepackage[]{inputenc}} statementspecifying a single input encoding.\item There is a new Sweave option \code{figs.only = TRUE} to runeach figure chunk only for each selected graphics device, and notfirst using the default graphics device. This will become thedefault in \R 2.14.0.\item Sweave custom graphics devices can have a custom function\code{foo.off()} to shut them down.\item Warnings are issued when non-portable filenames are foundfor graphics files (and chunks if \code{split = TRUE}). Portablenames are regarded as alphanumeric plus hyphen, underscore, plusand hash (periods cause problems with recognizing fileextensions).\item The \code{Rtangle()} driver has a new option\code{show.line.nos} which is by default false; if true itannotates code chunks with a comment giving the line number of thefirst line in the sources (the behaviour of \R >= 2.12.0).\item Package installation tangles the vignette sources: this stepnow converts the vignette sources from the vignette/packageencoding to the current encoding, and records the encoding (if notASCII) in a comment line at the top of the installed \file{.R}file.}}\subsection{LICENCE}{\itemize{\item No parts of \R are now licensed solely under GPL-2. Thelicences for packages \pkg{rpart} and \pkg{survival} have beenchanged, which means that the licence terms for \R as distributedare GPL-2 | GPL-3.}}\subsection{DEPRECATED AND DEFUNCT}{\itemize{\item The internal functions \code{.readRDS()} and\code{.saveRDS()} are now deprecated in favour of the publicfunctions \code{readRDS()} and \code{saveRDS()} introduced in \R2.13.0.\item Switching off lazy-loading of code \emph{via} the\samp{LazyLoad} field of the \file{DESCRIPTION} file is nowdeprecated. In future all packages will be lazy-loaded.\item The off-line \code{help()} types \samp{"postscript"} and\samp{"ps"} are deprecated.}}\subsection{UTILITIES}{\itemize{\item \command{R CMD check} on a multi-architecture installation nowskips the user's \file{.Renviron} file for thearchitecture-specific tests (which do read thearchitecture-specific \file{Renviron.site} files). This isconsistent with single-architecture checks, which use\option{--no-environ}.\item \command{R CMD build} now looks for \file{DESCRIPTION}fields \samp{BuildResaveData} and \samp{BuildKeepEmpty} forper-package overrides. See \sQuote{Writing R Extensions}.}}\subsection{BUG FIXES}{\itemize{\item \code{plot.lm(which = 5)} was intended to order factorlevels in increasing order of mean standardized residual. Itordered the factor labels correctly, but could plot the wronggroup of residuals against the label. (\PR{14545})\item \code{mosaicplot()} could clip the factor labels, and couldoverlap them with the cells if a non-default value of\code{cex.axis} was used. (Related to \PR{14550}.)\item \code{dataframe[[row,col]]} now dispatches on \code{[[}methods for the selected column. (Spotted by Bill Dunlap).\item \code{sort.int()} would strip the class of an object, butleave its object bit set. (Reported by Bill Dunlap.)\item \code{pbirthday()} and \code{qbirthday()} did not implementthe algorithm exactly as given in their reference and so wereunnecessarily inaccurate.\code{pbirthday()} now solves the approximate formula analyticallyrather than using \code{uniroot()} on a discontinuous function.The description of the problem was inaccurate: the probability isa tail probablity (\sQuote{2 \emph{or more} people share a birthday})\item Complex arithmetic sometimes warned incorrectly aboutproducing NAs when there were NaNs in the input.\item \code{seek(origin = "current")} incorrectly reported it wasnot implemented for a \code{gzfile()} connection.\item \code{c()}, \code{unlist()}, \code{cbind()} and\code{rbind()} could silently overflow the maximum vector lengthand cause a segfault. (\PR{14571})\item The \code{fonts} argument to \code{X11(type = "Xlib")} wasbeing ignored.\item Reading (e.g. with \code{readBin()}) from a raw connectionwas not advancing the pointer, so successive reads would read thesame value. (Spotted by Bill Dunlap.)\item Parsed text containing embedded newlines was printedincorrectly by \code{as.character.srcref()}. (Reported by HadleyWickham.)\item \code{decompose()} used with a series of a non-integernumber of periods returned a seasonal component shorter than theoriginal series. (Reported by Rob Hyndman.)\item \code{fields = list()} failed for \code{setRefClass()}.(Reported by Michael Lawrence.)\item Reference classes could not redefine an inherited fieldwhich had class \code{"ANY"}. (Reported by Janko Thyson.)\item Methods that override previously loaded versions will nowbe installed and called. (Reported by Iago Mosqueira.)\item \code{addmargins()} called \code{numeric(apos)} rather than\code{numeric(length(apos))}.\item The HTML help search sometimes produced bad links.(\PR{14608})\item Command completion will no longer be broken if\code{tail.default()} is redefined by the user. (Problem reportedby Henrik Bengtsson.)\item LaTeX rendering of markup in titles of help pages has beenimproved; in particular, \code{\\eqn{}} may be used there.\item \code{isClass()} used its own namespace as the default ofthe \code{where} argument inadvertently.\item Rd conversion to latex mis-handled multi-line titles(including cases where there was a blank line in the \samp{\title}section). (It seems this happened only in 2.13.0 patched.)\item \code{postscript()} with an sRGB colormodel now uses sRGBfor raster images (in \R 2.13.[01] it used uncalibrated RGB).There is no longer an undocumented 21845-pixel limit on raster images.}}}\section{CHANGES IN R VERSION 2.13.0}{\subsection{SIGNIFICANT USER-VISIBLE CHANGES}{\itemize{\item \code{replicate()} (by default) and \code{vapply()} (always)now return a higher-dimensional array instead of a matrix in the casewhere the inner function value is an array of dimension >= 2.\item Printing and formatting of floating point numbers is nowusing the correct number of digits, where it previously rarelydiffered by a few digits. (See \dQuote{scientific} entry below.)This affects \emph{many} \file{*.Rout.save} checks in packages.}}\subsection{NEW FEATURES}{\itemize{\item \code{normalizePath()} has been moved to the \pkg{base}package (from \pkg{utils}): this is so it can be used by\code{library()} and friends.It now does tilde expansion.It gains new arguments \code{winslash} (to select the separator onWindows) and \code{mustWork} to control the action if a canonicalpath cannot be found.\item The previously barely documented limit of 256 bytes on asymbol name has been raised to 10,000 bytes (a sanity check).Long symbol names can sometimes occur when deparsing expressions(for example, in \code{model.frame}).\item \code{reformulate()} gains a \code{intercept} argument.\item \code{cmdscale(add = FALSE)} now uses the more commondefinition that there is a representation in \code{n-1} or lessdimensions, and only dimensions corresponding to positiveeigenvalues are used. (Avoids confusion such as \PR{14397}.)\item Names used by \code{c()}, \code{unlist()}, \code{cbind()}and \code{rbind()} are marked with an encoding when this can beascertained.\item R colours are now defined to refer to the sRGB color space.The PDF, PostScript, and Quartz graphics devices record this fact.X11 (and cairo) and Windows just assume that your screen conforms.\item \code{system.file()} gains a \code{mustWork} argument(suggestion of Bill Dunlap).\item \code{new.env(hash = TRUE)} is now the default.\item \code{list2env(envir = NULL)} defaults to hashing (with asuitably sized environment) for lists of more than 100 elements.\item \code{text()} gains a formula method.\item \code{IQR()} now has a \code{type} argument which is passedto \code{quantile()}.\item \code{as.vector()}, \code{as.double()} etc duplicate lesswhen they leave the mode unchanged but remove attributes.\code{as.vector(mode = "any")} no longer duplicates when it doesnot remove attributes. This helps memory usage in \code{matrix()}and \code{array()}.\code{matrix()} duplicates less if \code{data} is an atomic vectorwith attributes such as names (but no class).\code{dim(x) <- NULL} duplicates less if \code{x} has neitherdimensions nor names (since this operation removes names anddimnames).\item \code{setRepositories()} gains an \code{addURLs} argument.\item \code{chisq.test()} now also returns a \code{stdres}component, for standardized residuals (which have unit variance,unlike the Pearson residuals).\item \code{write.table()} and friends gain a \code{fileEncoding}argument, to simplify writing files for use on other OSes (e.g. aspreadsheet intended for Windows or Mac OS X Excel).\item Assignment expressions of the form \code{foo::bar(x) <- y}and \code{foo:::bar(x) <- y} now work; the replacement functionsused are \code{foo::`bar<-`} and \code{foo:::`bar<-`}.\item \code{Sys.getenv()} gains a \code{names} argument so\code{Sys.getenv(x, names = FALSE)} can replace the common idiomof \code{as.vector(Sys.getenv())}. The default has been changedto not name a length-one result.\item Lazy loading of environments now preserves attributes andlocked status. (The locked status of bindings and active bindingsare still not preserved; this may be addressed in the future).\item \code{options("install.lock")} may be set to \code{FALSE}so that \code{install.packages()} defaults to \option{--no-lock}installs, or (on Windows) to \code{TRUE} so that binary installsimplement locking.\item \code{sort(partial = p)} for large \code{p} now triesShellsort if quicksort is not appropriate and so works fornon-numeric atomic vectors.\item \code{sapply()} gets a new option \code{simplify = "array"}which returns a \dQuote{higher rank} array instead of just a matrixwhen \code{FUN()} returns a \code{dim()} length of two or more.\code{replicate()} has this option set by default, and\code{vapply()} now behaves that way internally.\item \code{aperm()} becomes S3 generic and gets a \code{table}method which preserves the class.\item \code{merge()} and \code{as.hclust()} methods for objects ofclass \code{"dendrogram"} are now provided.\item The character method of \code{as.POSIXlt()} now tries tofind a format that works for all non-\code{NA} inputs, not justthe first one.\item \code{str()} now has a method for class \code{"Date"}analogous to that for class \code{"POSIXt"}.\item New function \code{file.link()} to create hard links onthose file systems (POSIX, NTFS but not FAT) that support them.\item New \code{Summary()} group method for class \code{"ordered"}implements \code{min()}, \code{max()} and \code{range()} forordered factors.\item \code{mostattributes<-()} now consults the \code{"dim"}attribute and not the \code{dim()} function, making it more usefulfor objects (such as data frames) from classes with methods for\code{dim()}. It also uses \code{attr<-()} in preference to thegenerics \code{name<-()}, \code{dim<-()} and \code{dimnames<-()}.(Related to \PR{14469}.)\item There is a new option \code{"browserNLdisabled"} to disablethe use of an empty (e.g. via the \sQuote{Return} key) as a synonymfor \code{c} in \code{browser()} or \code{n} under \code{debug()}.(Wish of \PR{14472}.)\item \code{example()} gains optional new arguments\code{character.only} and \code{give.lines} enabling programmaticexploration.\item \code{serialize()} and \code{unserialize()} are no longerdescribed as \sQuote{experimental}. The interface is now regardedas stable, although the serialization format may well change infuture releases. (\code{serialize()} has a new argument\code{version} which would allow the current format to be writtenif that happens.)New functions \code{saveRDS()} and \code{readRDS()} are publicversions of the \sQuote{internal} functions \code{.saveRDS()} and\code{.readRDS()} made available for general use. The dot-nameversions remain available as several package authors have made useof them, despite the documentation. \code{readRDS()} no longerwraps non-file connections in a call to \code{gzcon()}, forefficiency (see its documentation).\code{saveRDS()} supports \code{compress = "xz"}.\item Many functions when called with a not-open connection willnow ensure that the connection is left not-open in the event oferror. These include \code{read.dcf()}, \code{dput()},\code{dump()}, \code{load()}, \code{parse()}, \code{readBin()},\code{readChar()}, \code{readLines()}, \code{save()},\code{writeBin()}, \code{writeChar()}, \code{writeLines()},\code{.readRDS()}, \code{.saveRDS()} and \code{tools::parse_Rd()},as well as functions calling these.\item Public functions \code{find.package()} and \code{path.package()}replace the internal dot-name versions.\item The default method for \code{terms()} now looks for a\code{"terms"} attribute if it does not find a \code{"terms"}component, and so works for model frames.\item \code{httpd()} handlers receive an additional argumentcontaining the full request headers as a raw vector (this can beused to parse cookies, multi-part forms etc.). The recommendedfull signature for handlers is therefore \code{function(url,query, body, headers, ...)}.\item \code{file.edit()} gains a \code{fileEncoding} argument tospecify the encoding of the file(s).\item The format of the HTML package listings has changed. Ifthere is more than one library tree , a table of links tolibraries is provided at the top and bottom of the page. Where alibrary contains more than 100 packages, an alphabetic index isgiven at the top of the section for that library. (As aconsequence, package names are now sorted case-insensitivelywhatever the locale.)\item \code{isSeekable()} now returns \code{FALSE} on connectionswhich have non-default \code{encoding}. Although documented torecord if \sQuote{in principle} the connection supports seeking,it seems safer to report \code{FALSE} when it may not work.\item \command{R CMD REMOVE} and \code{remove.packages()} nowremove file \code{R.css} when removing all remaining packages in alibrary tree. (Related to the wish of \PR{14475}: note that thisfile is no longer installed.)\item \code{unzip()} now has a \code{unzip} argument like\code{zip.file.extract()}. This allows an external\command{unzip} program to be used, which can be useful to accessfeatures supported by Info-ZIP's \command{unzip} version 6 whichis now becoming more widely available.\item There is a simple \code{zip()} function, as wrapper for anexternal \command{zip} command.\item \code{bzfile()} connections can now read from concatenated\command{bzip2} files (including files written with\code{bzfile(open = "a")}) and files created by some othercompressors (such as the example of \PR{14479}).\item The primitive function \code{c()} is now of type BUILTIN.\item \code{plot(<dendrogram>, .., nodePar=*)} now obeys an optional\code{xpd} specification (allowing clipping to be turned offcompletely).\item \code{nls(algorithm="port")} now shares more code with\code{nlminb()}, and is more consistent with the other\code{nls()} algorithms in its return value.\item \command{xz} has been updated to 5.0.1 (very minor bugfixrelease).\item \code{image()} has gained a logical \code{useRaster}argument allowing it to use a bitmap raster for plotting aregular grid instead of polygons. This can be more efficient, butmay not be supported by all devices. The default is \code{FALSE}.\item \code{list.files()}/\code{dir()} gains a new argument\code{include.dirs()} to include directories in the listing when\code{recursive = TRUE}.\item New function \code{list.dirs()} lists all directories,(even empty ones).\item \code{file.copy()} now (by default) copiesread/write/execute permissions on files, moderated by the currentsetting of \code{Sys.umask()}.\item \code{Sys.umask()} now accepts \code{mode = NA} and returnsthe current \code{umask} value (visibly) without changing it.\item There is a \code{!} method for classes \code{"octmode"} and\code{"hexmode"}: this allows \code{xor(a, b)} to work if both\code{a} and \code{b} are from one of those classes.\item \code{as.raster()} no longer fails for vectors or matricescontaining \code{NA}s.\item New hook \code{"before.new.plot"} allows functions to be runjust before advancing the frame in \code{plot.new}, which ispotentially useful for custom figure layout implementations.\item Package \pkg{tools} has a new function \code{compactPDF()}to try to reduce the size of PDF files \emph{via} \command{qpdf}or \command{gs}.\item \code{tar()} has a new argument \code{extra_flags}.\item \code{dotchart()} accepts more general objects \code{x} suchas 1D tables which can be coerced by \code{as.numeric()} to anumeric vector, with a warning since that might not beappropriate.\item The previously internal function \code{create.post()} is nowexported from \pkg{utils}, and the documentation for\code{bug.report()} and \code{help.request()} now refer to thatfor \code{create.post()}.It has a new \code{method = "mailto"} on Unix-alikes similar tothat on Windows: it invokes a default mailer via \command{open}(Mac OS X) or \code{xdg-open} or the default browser (elsewhere).The default for \code{ccaddress} is now\code{getOption("ccaddress")} which is by default unset: using theusername as a mailing address nowadays rarely works as expected.\item The default for \code{options("mailer")} is now\code{"mailto"} on all platforms.\item \code{unlink()} now does tilde-expansion (like most otherfile functions).\item \code{file.rename()} now allows vector arguments (of thesame length).\item The \code{"glm"} method for \code{logLik()} now returns an\code{"nobs"} attribute (which \code{stats4::BIC()} assumed itdid).The \code{"nls"} method for \code{logLik()} gave incorrect resultsfor zero weights.\item There is a new generic function \code{nobs()} in package\pkg{stats}, to extract from model objects a suitable value foruse in BIC calculations. An S4 generic derived from it is definedin package \pkg{stats4}.\item Code for S4 reference-class methods is now examined forpossible errors in non-local assignments.\item \code{findClasses}, \code{getGeneric}, \code{findMethods}and \code{hasMethods} are revised to deal consistently withthe \code{package=} argument and be consistent with soft namespacepolicy for finding objects.\item \code{tools::Rdiff()} now has the option to return not onlythe status but a character vector of observed differences (whichare still by default sent to \file{stdout}).\item The startup environment variables \env{R_ENVIRON_USER},\env{R_ENVIRON}, \env{R_PROFILE_USER} and \env{R_PROFILE} are nowtreated more consistently. In all cases an empty value isconsidered to be set and will stop the default being used, and forthe last two tilde expansion is performed on the file name. (Notethat setting an empty value is probably impossible on Windows.)\item Using \command{R --no-environ CMD}, \command{R--no-site-file CMD} or \command{R --no-init-file CMD} setsenvironment variables so these settings are passed on to child \Rprocesses, notably those run by \code{INSTALL}, \code{check} and\code{build}. \command{R --vanilla CMD} sets these three options(but not \option{--no-restore}).\item \code{smooth.spline()} is somewhat faster. With\code{cv=NA} it allows some leverage computations to be skipped,\item The internal (C) function \samp{scientific()}, at the heartof \R's \code{format.info(x)}, \code{format(x)}, \code{print(x)},etc, for numeric \code{x}, has been re-written in order to provideslightly more correct results, fixing \PR{14491}, notably inborder cases including when \code{digits >= 16}, thanks tosubstantial contributions (code and experiments) from PetrSavicky. This affects a noticable amount of numeric output from\R.\item A new function \code{grepRaw()} has been introduced forfinding subsets of raw vectors. It supports both literal searchesand regular expressions.\item Package \pkg{compiler} is now provided as a standardpackage. See \code{?compiler::compile} for information on how touse the compiler. This package implements a byte code compilerfor \R: by default the compiler is not used in this release. Seethe \sQuote{R Installation and Administration Manual} for how tocompile the base and recommended packages.\item Providing an \code{exportPattern} directive in a NAMESPACEfile now causes classes to be exported according to the samepattern, for example the default from \code{package.skeleton()}to specify all names starting with a letter. An explicitdirective to \code{exportClassPattern} will still over-ride.\item There is an additional marked encoding \code{"bytes"} forcharacter strings. This is intended to be used for non-ASCIIstrings which should be treated as a set of bytes, and neverre-encoded as if they were in the encoding of the currrent locale:\code{useBytes = TRUE} is autmatically selected in functions suchas \code{writeBin()}, \code{writeLines()}, \code{grep()} and\code{strsplit()}.Only a few character operations are supported (such as \code{substr()}).Printing, \code{format()} and \code{cat()} will represent non-ASCIIbytes in such strings by a \samp{\xab} escape.\item The new function \code{removeSource()} removes the internallystored source from a function.\item \code{"srcref"} attributes now include two additionalline number values, recording the line numbers in the order theywere parsed.\item New functions have been added for source reference access:\code{getSrcFilename()}, \code{getSrcDirectory()},\code{getSrcLocation()} and \code{getSrcref()}.\item \code{Sys.chmod()} has an extra argument \code{use_umask}which defaults to true and restricts the file mode by the currentsetting of \code{umask}. This means that all the \R functionswhich manipulate file/directory permissions by default respect\code{umask}, notably \command{R CMD INSTALL}.\item \code{tempfile()} has an extra argument \code{fileext} tocreate a temporary filename with a specified extension.(Suggestion and initial implementation by Dirk Eddelbuettel.)There are improvements in the way \code{Sweave()} and\code{Stangle()} handle non-ASCII vignette sources, especially ina UTF-8 locale: see \sQuote{Writing R Extensions} which now has asubsection on this topic.\item \code{factanal()} now returns the rotation matrix if arotation such as \code{"promax"} is used, and hence factorcorrelations are displayed. (Wish of \PR{12754}.)\item The \code{gctorture2()} function provides a more refinedinterface to the GC torture process. Environment variables\env{R_GCTORTURE}, \env{R_GCTORTURE_WAIT}, and\env{R_GCTORTURE_INHIBIT_RELEASE} can also be used to control theGC torture process.\item \code{file.copy(from, to)} no longer regards it as an errorto supply a zero-length \code{from}: it now simply does nothing.\item \code{rstandard.glm()} gains a \code{type} argument which canbe used to request standardized Pearson residuals.\item A start on a Turkish translation, thanks to Murat Alkan.\item \code{.libPaths()} calls \code{normalizePath(winslash = "/")}on the paths: this helps (usually) to present them in auser-friendly form and should detect duplicate paths accessed viadifferent symbolic links.\item \code{download.file()} can be now used with external methodseven if there are spaces in the URL or the target filename.}}\subsection{SWEAVE CHANGES}{\itemize{\item \code{Sweave()} has options to produce PNG and JPEG figures,and to use a custom function to open a graphics device (see\code{?RweaveLatex}).\cr(Based in part on the contribution of \PR{14418}.)\item The default for \code{Sweave()} is to produce only PDFfigures (rather than both EPS and PDF).\item Environment variable \env{SWEAVE_OPTIONS} can be used tosupply defaults for existing or new options to be applied afterthe Sweave driver setup has been run.\item The Sweave manual is now included as a vignette in the\pkg{utils} package.\item \code{Sweave()} handles \code{keep.source=TRUE} much better:it could duplicate some lines and omit comments. (Reported by JohnMaindonald and others.)}}\subsection{C-LEVEL FACILITIES}{\itemize{\item Because they use a C99 interface which a C++ compiler is notrequired to support, \code{Rvprintf} and \code{REvprintf} are onlydefined by \file{R_ext/Print.h} in C++ code if the macro\code{R_USE_C99_IN_CXX} is defined when it is included.\item \code{pythag} duplicated the C99 function \code{hypot}. Itis no longer provided, but is used as a substitute for \code{hypot}in the very unlikely event that the latter is not available.\item \code{R_inspect(obj)} and \code{R_inspect3(obj, deep, pvec)}are (hidden) C-level entry points to the internal \code{inspect}function and can be used for C-level debugging (e.g., in conjunctionwith the \code{p} command in \code{gdb}).\item Compiling R with \option{--enable-strict-barrier} now alsoenables additional checking for use of unprotected objects. Incombination with \code{gctorture()} or \code{gctorture2()} and aC-level debugger this can be useful for tracking down memoryprotection issues.}}\subsection{UTILITIES}{\itemize{\item \command{R CMD Rdiff} is now implemented in \R onUnix-alikes (as it has been on Windows since \R 2.12.0).\item \command{R CMD build} no longer does any cleaning in thesupplied package directory: all the cleaning is done in the copy.It has a new option \option{--install-args} to pass arguments to\command{R CMD INSTALL} for \option{--build} (but not wheninstalling to rebuild vignettes).There is new option, \option{--resave-data}, to call\code{tools::resaveRdaFiles()} on the \file{data} directory, tocompress tabular files (\file{.tab}, \file{.csv} etc) and toconvert \file{.R} files to \file{.rda} files. The default,\option{--resave-data=gzip}, is to do so in a way compatible evenwith years-old versions of \R, but better compression is given by\option{--resave-data=best}, requiring \R >= 2.10.0.It now adds a \file{datalist} file for \file{data} directories ofmore than 1Mb.Patterns in \file{.Rbuildignore} are now also matched against alldirectory names (including those of empty directories).There is a new option, \option{--compact-vignettes}, to tryreducing the size of PDF files in the \file{inst/doc} directory.Currently this tries \command{qpdf}: other options may be used infuture.When re-building vignettes and a \file{inst/doc/Makefile} file isfound, \code{make clean} is run if the makefile has a\code{clean:} target.After re-building vignettes the default clean-up operation willremove any directories (and not just files) created during theprocess: e.g. one package created a \file{.R_cache} directory.Empty directories are now removed unless the option\option{--keep-empty-dirs} is given (and a few packages dodeliberately include empty directories).If there is a field \code{BuildVignettes} in the package\file{DESCRIPTION} file with a false value, re-building thevignettes is skipped.\item \command{R CMD check} now also checks for filenames that arecase-insensitive matches to Windows' reserved file names withextensions, such as \file{nul.Rd}, as these have caused problemson some Windows systems.It checks for inefficiently saved \file{data/*.rda} and\file{data/*.RData} files, and reports on those large than 100Kb.A more complete check (including of the type of compression, butpotentially much slower) can be switched on by setting environmentvariable \env{_R_CHECK_COMPACT_DATA2_} to \samp{TRUE}.The types of files in the \file{data} directory are now checked,as packages are \emph{still} misusing it for non-\R data files.It now extracts and runs the \R code for each vignette in aseparate directory and \R process: this is done in the package'sdeclared encoding. Rather than call\code{tools::checkVignettes()}, it calls\code{tools::buildVignettes()} to see if the vignettes can bere-built as they would be by \command{R CMD build}. Option\option{--use-valgrind} now applies only to these runs, and notwhen running code to rebuild the vignettes. This version does amuch better job of suppressing output from successful vignettetests.The \file{00check.log} file is a more complete record of what isoutput to \file{stdout}: in particular contains more details ofthe tests.It now checks all syntactically valid Rd usage entries, and warnsabout assignments (unless these give the usage of replacementfunctions).\file{.tar.xz} compressed tarballs are now allowed, if\command{tar} supports them (and setting environment variable\env{TAR} to \samp{internal} ensures so on all platforms).\item \command{R CMD check} now warns if it finds\file{inst/doc/makefile}, and \command{R CMD build} renames such afile to \file{inst/doc/Makefile}.}}\subsection{INSTALLATION}{\itemize{\item Installing \R no longer tries to find \command{perl}, and\command{R CMD} no longer tries to substitute a full path for\command{awk} nor \command{perl} -- this was a legacy from thedays when they were used by \R itself. Because a couple ofpackages do use \command{awk}, it is set as the \command{make}(rather than environment) variable \env{AWK}.\item \command{make check} will now fail if there are differencesfrom the reference output when testing package examples and ifenvironment variable \env{R_STRICT_PACKAGE_CHECK} is set to a truevalue.\item The C99 double complex type is now required.The C99 complex trigonometric functions (such as \samp{csin}) arenot currently required (FreeBSD lacks most of them): substitutesare used if they are missing.\item The C99 system call \samp{va_copy} is now required.\item If environment variable \env{R_LD_LIBRARY_PATH} is setduring configuration (for example in \file{config.site}) it isused unchanged in file \file{etc/ldpaths} rather than beingappended to.\item \command{configure} looks for support for OpenMP and iffound compiles \R with appropriate flags and also makes themavailable for use in packages: see \sQuote{Writing R Extensions}.This is currently experimental, and is only used in \R with asingle thread for \code{colSums()} and \code{colMeans()}. Expectit to be more widely used in later versions of \R.This can be disabled by the \option{--disable-openmp} flag.}}\subsection{PACKAGE INSTALLATION}{\itemize{\item \command{R CMD INSTALL --clean} now removes copies of a\file{src} directory which are created when multiplesub-architectures are in use. (Following a comment fromBerwin Turlach.)\item File \file{R.css} is now installed on a per-package basis(in the package's \file{html} directory) rather than in eachlibrary tree, and this is used for all the HTML pages in thepackage. This helps when installing packages with static HTMLpages for use on a webserver. It will also allow future versionsof \R to use different stylesheets for the packages they install.\item A top-level file \file{.Rinstignore} in the package sourcescan list (in the same way as \file{.Rbuildignore}) files under\code{inst} that should not be installed. (Why should there be anysuch files? Because all the files needed to re-build vignettesneed to be under \code{inst/doc}, but they may not need to beinstalled.)\item \command{R CMD INSTALL} has a new option\option{--compact-docs} to compact any PDFs under the\file{inst/doc} directory. Currently this uses \command{qpdf},which must be installed (see \sQuote{Writing R Extensions}).\item There is a new option \option{--lock} which can be used tocancel the effect of \option{--no-lock} or \option{--pkglock} earlieron the command line.\item Option \option{--pkglock} can now be used with more than onepackage, and is now the default if only one package is specified.\item Argument \code{lock} of \code{install.packages()} can now beuse for Mac binary installs as well as for Windows ones. Thevalue \code{"pkglock"} is now accepted, as well as \code{TRUE} and\code{FALSE} (the default).\item There is a new option \option{--no-clean-on-error} for\command{R CMD INSTALL} to retain a partially installed package forforensic analysis.\item Packages with names ending in \file{.} are not portablesince Windows does not work correctly with such directory names.This is now warned about in \command{R CMD check}, and will not beallowed in \R 2.14.x.\item The vignette indices are more comprehensive (in the style of\code{browseVignetttes()}).}}\subsection{DEPRECATED & DEFUNCT}{\itemize{\item \code{require(save = TRUE)} is defunct, and use of the\code{save} argument is deprecated.\item \command{R CMD check --no-latex} is defunct: use\option{--no-manual} instead.\item \command{R CMD Sd2Rd} is defunct.\item The \code{gamma} argument to \code{hsv()},\code{rainbow()}, and \code{rgb2hsv()} is deprecatedand no longer has any effect.\item The previous options for \command{R CMD build --binary}(\option{--auto-zip}, \option{--use-zip-data} and\option{--no-docs}) are deprecated (or defunct):use the new option \option{--install-args} instead.\item When a character value is used for the \code{EXPR}argument in \code{switch()}, only a single unnamed alternativevalue is now allowed.\item The wrapper \code{utils::link.html.help()} is no longeravailable.\item Zip-ing data sets in packages (and hence \command{R CMDINSTALL} options \option{--use-zip-data} and \option{--auto-zip}, aswell as the \samp{ZipData: yes} field in a \code{DESCRIPTION} file)is defunct.Installed packages with zip-ed data sets can still be used, but awarning that they should be re-installed will be given.\item The \sQuote{experimental} alternative specification of anamespace via \code{.Export()} etc is now defunct.\item The option \option{--unsafe} to \command{R CMD INSTALL} isdeprecated: use the identical option \option{--no-lock} instead.\item The entry point \code{pythag} in \file{Rmath.h} is deprecatedin favour of the C99 function \code{hypot}. A wrapper for\code{hypot} is provided for \R 2.13.x only.\item Direct access to the \code{"source"} attribute of functionsis deprecated; use \code{deparse(fn, control="useSource")} to accessit, and \code{removeSource(fn)} to remove it.\item \command{R CMD build --binary} is now formally deprecated:\command{R CMD INSTALL --build} has long been the preferredalternative.\item Single-character package names are deprecated (and \pkg{R}is already disallowed to avoid confusion in \samp{Depends:}fields).}}\subsection{BUG FIXES}{\itemize{\item \code{drop.terms} and the \code{[} method for class\code{"terms"} no longer add back an intercept. (Reported byNiels Hansen.)\item \code{aggregate} preserves the class of a column (e.g. adate) under some circumstances where it discarded the classpreviously.\item \code{p.adjust()} now always returns a vector result, asdocumented. In previous versions it copied attributes (such asdimensions) from the \code{p} argument: now it only copies names.\item On PDF and PostScript devices, a line width of zero wasrecorded verbatim and this caused problems for some viewers(a very thin line combined with a non-solid line dash patterncould also cause a problem). On these devices, the line width isnow limited at 0.01 and for very thin lines with complex dashpatterns the device may force the line dash pattern to be solid.(Reported by Jari Oksanen.)\item The \code{str()} method for class \code{"POSIXt"} now givessensible output for 0-length input.\item The one- and two-argument complex maths functions failed towarn if NAs were generated (as their numeric analogues do).\item Added \code{.requireCachedGenerics} to the \code{dont.mind}list for \code{library()} to avoid warnings about duplicates.\item \code{$<-.data.frame} messed with the class attribute,breaking any S4 subclass. The S4 \code{data.frame} class now has its own\code{$<-} method, and turns dispatch on for this primitive.\item \code{Map()} did not look up a character argument \code{f}in the correct frame, thanks to lazy evaluation. (\PR{14495})\item \code{file.copy()} did not tilde-expand \code{from} and \code{to}when \code{to} was a directory. (\PR{14507})\item It was possible (but very rare) for the loading test in\command{R CMD INSTALL} to crash a child \R process and so leavearound a lock directory and a partially installed package. Thattest is now done in a separate process.\item \code{plot(<formula>, data=<matrix>,..)} now works in morecases; similarly for \code{points()}, \code{lines()} and\code{text()}.\item \code{edit.default()} contained a manual dispatch for matrices(the \code{"matrix"} class didn't really exist when it was written).This caused an infinite recursion in the no-GUI case and has nowbeen removed.\item \code{data.frame(check.rows = TRUE)} sometimes worked whenit should have detected an error. (\PR{14530})\item \code{scan(sep= , strip.white=TRUE)} sometimes strippedtrailing spaces from within quoted strings. (The real bug in\PR{14522}.)\item The rank-correlation methods for \code{cor()} and\code{cov()} with \code{use = "complete.obs"} computed the ranksbefore removing missing values, whereas the documentation impliedincomplete cases were removed first. (\PR{14488})They also failed for 1-row matrices.\item The perpendicular adjustment used in placing text andexpressions in the margins of plots was not scaled by\code{par("mex")}. (Part of \PR{14532}.)\item Quartz Cocoa device now catches any Cocoa exceptions thatoccur during the creation of the device window to prevent crashes.It also imposes a limit of 144 ft^2 on the area used by a windowto catch user errors (unit misinterpretation) early.\item The browser (invoked by \code{debug()}, \code{browser()}or otherwise) would display attributes such as \code{"wholeSrcref"}that were intended for internal use only.\item R's internal filename completion now properly handlesfilenames with spaces in them even when the readline library isused. This resolves \PR{14452} provided the internal filenamecompletion is used (e.g., by setting \code{rc.settings(files =TRUE)}).\item Inside \code{uniroot(f, ...)}, \code{-Inf} function valuesare now replaced by a maximally \bold{negative} value.\item \code{rowsum()} could silently over/underflow on integerinputs (reported by Bill Dunlap).\item \code{as.matrix()} did not handle \code{"dist"} objects withzero rows.}}}\section{CHANGES IN R VERSION 2.12.2 patched}{\subsection{NEW FEATURES}{\itemize{\item \code{max()} and \code{min()} work harder to ensure that\code{NA} has precedence over \code{NaN}, so e.g. \code{min(NaN,NA)} is \code{NA}. (This was not previously documented exceptfor within a single numeric vector, where compiler optimizationsoften defeated the code.)}}\subsection{BUG FIXES}{\itemize{\item A change to the C function \samp{R_tryEval} had broken errormessages in S4 method selection; the error message is now printed.\item PDF output with a non-RGB color model used RGB for the linestroke color. (\PR{14511})\item \code{stats4::BIC()} assumed without checking that an objectof class \code{"logLik"} has an \code{"nobs"} attribute:\code{glm()} fits did not and so \code{BIC()} failed for them.\item In some circumstances a one-sided \code{mantelhaen.test()}reported the p-value for the wrong tail. (\PR{14514})\item Passing the invalid value \code{lty = NULL} to \code{axis()}sent an invalid value to the graphics device, and might cause thedevice to segfault.\item \code{Sweave()} with \code{concordance=TRUE} could lead toinvalid PDF files; \file{Sweave.sty} has been updated to avoidthis.\item Non-ASCII characters in the titles of help pages werenot rendered properly in some locales, and could cause errorsor warnings.\item \code{checkRd()} gave a spurious error if the \code{\\href}macro was used.}}}\section{CHANGES IN R VERSION 2.12.2}{\subsection{SIGNIFICANT USER-VISIBLE CHANGES}{\itemize{\item Complex arithmetic (notably \code{z^n} for complex \code{z}and integer \code{n}) gave incorrect results since \R 2.10.0 onplatforms without C99 complex support. This and somelesser issues in trignometric functions have been corrected.Such platforms were rare (we know of Cygwin and FreeBSD).However, because of new compiler optimizations in the way complexarguments are handled, the same code was selected on x86_64 Linuxwith \command{gcc 4.5.x} at the default \code{-O2} optimization(but not at \code{-O}).\item There is a workaround for crashes seen with several packageson systems using \samp{zlib 1.2.5}: see the INSTALLATION section.}}\subsection{NEW FEATURES}{\itemize{\item PCRE has been updated to 8.12 (two bug-fix releases since 8.10).\item \code{rep()}, \code{seq()}, \code{seq.int()} and\code{seq_len()} report more often when the first element is takenof an argument of incorrect length.\item The Cocoa back-end for the \code{quartz()} graphics deviceon Mac OS X provides a way to disable event loop processingtemporarily (useful, e.g., for forked instances of \R).\item \code{kernel()}'s default for \code{m} was not appropriateif \code{coef} was a set of coefficients. (Reported by PierreChausse.)\item \code{bug.report()} has been updated for the current \R bugtracker, which does not accept emailed submissions.\item \command{R CMD check} now checks for the correct use of\samp{$(LAPACK_LIBS)} (as well as \samp{$(BLAS_LIBS)}), sinceseveral CRAN recent submissions have ignored \sQuote{Writing RExtensions}.}}\subsection{INSTALLATION}{\itemize{\item The \samp{zlib} sources in the distribution are now builtwith all symbols remapped: this is intended to avoid problems seenwith packages such as \pkg{XML} and \pkg{rggobi} which link to\file{zlib.so.1} on systems using \samp{zlib 1.2.5}.\item The default for \env{FFLAGS} and \env{FCFLAGS} with\command{gfortran} on x86_64 Linux has been changed back to \samp{-g-O2}: however, setting \samp{-g -O} may still be needed for\command{gfortran 4.3.x}.}}\subsection{PACKAGE INSTALLATION}{\itemize{\item A \samp{LazyDataCompression} field in the \file{DESCRIPTION}file will be used to set the value for the\option{--data-compress} option of \command{R CMD INSTALL}.\item Files \file{R/sysdata.rda} of more than 1Mb are now storedin the lazyload database using \command{xz} compression: this forexample halves the installed size of package \pkg{Imap}.\item \command{R CMD INSTALL} now ensures that directoriesinstalled from \file{inst} have search permission for everyone.It no longer installs files \file{inst/doc/Rplots.ps} and\file{inst/doc/Rplots.pdf}. These are almost certainly left-oversfrom \code{Sweave} runs, and are often large.}}\subsection{DEPRECATED & DEFUNCT}{\itemize{\item The \sQuote{experimental} alternative specification of anamespace via \code{.Export()} etc is now deprecated.\item \code{zip.file.extract()} is now deprecated.\item Zip-ing data sets in packages (and hence \command{R CMDINSTALL --use-zip-data} and the \samp{ZipData: yes} field in a\code{DESCRIPTION} file) is deprecated: using efficientlycompressed \file{.rda} images and lazy-loading of data hassuperseded it.}}\subsection{BUG FIXES}{\itemize{\item \code{identical()} could in rare cases generate a warningabout non-pairlist attributes on CHARSXPs. As these are used forinternal purposes, the attribute check should be skipped.(Reported by Niels Richard Hansen).\item If the filename extension (usually \file{.Rnw}) was notincluded in a call to \code{Sweave()}, source references would notwork properly and the \code{keep.source} option failed. (\PR{14459})\item \code{format.data.frame()} now keeps zero character column names.\item \code{pretty(x)} no longer raises an error when \code{x}contains solely non-finite values. (\PR{14468})\item The \code{plot.TukeyHSD()} function now uses a line width of0.5 for its reference lines rather than \samp{lwd = 0} (whichcaused problems for some PDF and PostScript viewers).\item The \code{big.mark} argument to \code{prettyNum()},\code{format()}, etc. was inserted reversed if it was more thanone character long.\item \command{R CMD check} failed to check the filenames under\file{man} for Windows' reserved names.\item The \code{"Date"} and \code{"POSIXt"} methods for\code{seq()} could overshoot when \code{to} was supplied and\code{by} was specified in months or years.\item The internal method of \code{untar()} now restores hardlinks as file copies rather than symbolic links (which did notwork for cross-directory links).\item \code{unzip()} did not handle zip files which containedfilepaths with two or more leading directories which were not inthe zipfile and did not already exist. (It is unclear if suchzipfiles are valid and the third-party C code used did not supportthem, but \PR{14462} created one.)\item \code{combn(n, m)} now behaves more regularly for the bordercase \eqn{m = 0}. (\PR{14473})\item The rendering of numbers in plotmath expressions (e.g.\code{expression(10^2)}) used the current settings for conversionto strings rather than setting the defaults, and so could beaffected by what has been done before. (\PR{14477})\item The methods of \code{napredict()} and \code{naresid()} for\code{na.action = na.exclude} fits did not work correctly in thevery rare event that every case had been omitted in the fit.(Reported by Simon Wood.)\item \code{weighted.residuals(drop0=TRUE)} returned a vector whenthe residuals were a matrix (e.g. those of class \code{"mlm"}).(Reported by Bill Dunlap.)\item Package HTML index files \file{<pkg>/html/00Index.html} weregenerated with a stylesheet reference that was not correct forstatic browsing in libraries.\item \code{ccf(na.action = na.pass)} was not implemented.\item The parser accepted some incorrect numeric constants,e.g. \code{20x2}. (Reported by Olaf Mersmann.)\item \code{format(*, zero.print)} did not always replace the fullzero parts.\item Fixes for subsetting or subassignment of \code{"raster"}objects when not both \code{i} and \code{j} are specified.\item \command{R CMD INSTALL} was not always respecting the\samp{ZipData: yes} field of a \file{DESCRIPTION} file (althoughthis is frequently incorrectly specified for packages with no dataor which specify lazy-loading of data).\command{R CMD INSTALL --use-zip-data} was incorrectly implementedas \option{--use-zipdata} since \R 2.9.0.\item \command{source(file, echo=TRUE)} could fail if the filecontained \samp{#line} directives. It now recovers more gracefully, butmay still display the wrong line if the directive gives incorrectinformation.\item \code{atan(1i)} returned \code{NaN+Infi} (rather than\code{0+Infi}) on platforms without C99 complex support.\item \code{library()} failed to cache S4 metadata (unlike\code{loadNamespace()}) causing failures in S4-using packageswithout a namespace (e.g. those using reference classes).\item The function \code{qlogis(lp, log.p=TRUE)} no longerprematurely overflows to \code{Inf} when exp(lp) is close to 1.\item Updating S4 methods for a group generic function requiresresetting the methods tables for the members of the group (patchcontributed by Martin Morgan).\item In some circumstances (including for package \pkg{XML}),\command{R CMD INSTALL} installed version-control directories fromsource packages.\item Added \code{PROTECT} calls to some constructed expressionsused in C level \code{eval} calls.\item \code{utils:::create.post()} (used by \code{bug.report()}and \code{help.request()}) failed to quote arguments to themailer, and so often failed.\item \code{bug.report()} was naive about how to extractmaintainer email addresses from package descriptions, so wouldoften try mailing to incorrect addresses.\item \code{debugger()} could fail to read the environment of acall to a function with a \code{\dots} argument. (Reported byCharlie Roosen.)\item \code{prettyNum(c(1i, NA), drop0=TRUE)} or\code{str(NA_complex_)} now work correctly.}}}\section{CHANGES IN R VERSION 2.12.1}{\subsection{NEW FEATURES}{\itemize{\item The DVI/PDF reference manual now includes the help pages forall the standard packages: \pkg{splines}, \pkg{stats4} and\pkg{tcltk} were previously omitted (intentionally).\item \url{http://www.rforge.net} has been added to the defaultset of repositories known to \code{setRepositories()}.\item xz-utils has been updated to version 5.0.0.\item \code{reshape()} now makes use of \code{sep} when formingnames during reshaping to wide format. (\PR{14435})\item \code{legend()} allows the length of lines to be set by theend user \emph{via} the new argument \code{seg.len}.\item New S4 reference class utility methods \code{copy()},\code{field()}, \code{getRefClass()} and \code{getClass()} havebeen added to package \pkg{methods}.\item When a character value is used for the \code{EXPR}argument in \code{switch()}, a warning is given if more thanone unnamed alternative value is given. This will become anerror in \R 2.13.0.\item \code{StructTS(type = "BSM")} now allows series with justtwo seasons. (Reported by Birgit Erni.)}}\subsection{INSTALLATION}{\itemize{\item The PDF reference manual is now built as PDF version 1.5with object compression, which on platforms for which this is notthe default (notably MiKTeX) halves its size.\item Variable \env{FCLIBS} can be set during configuration, forany additional library flags needed when linking a shared objectwith the Fortran 9x compiler. (Needed with Solaris Studio 12.2.)}}\subsection{BUG FIXES}{\itemize{\item \code{seq.int()} no longer sometimes evaluates argumentstwice. (\PR{14388})\item The \code{data.frame} method of \code{format()} failed if acolumn name was longer than 256 bytes (the maximum length allowedfor an \R name).\item \code{predict(<lm object>, type ="terms", ...)} failed ifboth \code{terms} and \code{interval} were specified. (Reportedby Bill Dunlap.)Also, if \code{se.fit = TRUE} the standard errors were reportedfor all terms, not just those selected by a non-null \code{terms}.\item The TRE regular expressions engine could terminate \R ratherthan give an error when given certain invalid regular expressions.(\PR{14398})\item \code{cmdscale(eig = TRUE)} was documented to return \eqn{n-1}eigenvalues but in fact only returned \code{k}. It now returnsall \eqn{n} eigenvalues.\code{cmdscale(add = TRUE)} failed to centre the returnconfiguration and sometimes lost the labels on the points. Itsreturn value was described wrongly (it is always a list andcontains component \code{ac}).\item \code{promptClass()} in package \pkg{methods} now works forreference classes and gives a suitably specialized skeleton ofdocumentation.Also, \code{callSuper()} now works via the \code{methods()}invocation as well as for initially specified methods.\item \code{download.file()} could leave the destination file openif the URL was not able to be opened. (\PR{14414})\item Assignment of an environment to functions or as an attributeto other objects now works for S4 subclasses of \code{"environment"}.\item Use of \samp{[[<-} for S4 subclasses of\code{"environment"} generated an infinite recursion from themethod. The method has been replaced by internal code.\item In a reference class S4 method, \code{callSuper()} now works in\code{initialize()} methods when there is no explicit superclassmethod.\item \samp{!} dropped attributes such as names and dimensions from alength-zero argument. (\PR{14424})\item When \code{list2env()} created an environment it was missinga \code{PROTECT} call and so was vulnerable to garbage collection.\item \code{Sweave()} with \code{keep.source=TRUE} droppedcomments at the start and end of code chunks. It could alsofail when \samp{\SweaveInput} was combined with named chunks.\item The Fortran code used by \code{nls(algorithm = "port")}could infinite-loop when compiled with high optimization on amodern version of \code{gcc}, and \code{SAFE_FFLAGS} is now usedto make this less likely. (\PR{14427}, seen with 32-bit Windowsusing \code{gcc 4.5.0} used from \R 2.12.0.)\item \code{sapply()} with default \code{simplify = TRUE} and\code{mapply()} with default \code{SIMPLIFY = TRUE} wronglysimplified language-like results, as, e.g., in\code{mapply(1:2, c(3,7), FUN = function(i,j) call(':',i,j))}.\item Backreferences to undefined patterns in\code{[g]sub(pcre = TRUE)} could cause a segfault. (\PR{14431})\item The \code{format()} (and hence the \code{print()}) methodfor class \code{"Date"} rounded fractional dates towards zero: itnow always rounds them down.\item Reference S4 class creation could generate ambiguousinheritance patterns under very special circumstances.\item \samp{[[<-} turned S4 subclasses of \code{"environment"} intoplain environments.\item Long titles for help pages were truncated in package indicesand a few other places.\item Additional utilities now work correctly with S4 subclasses of\code{"environment"} (\code{rm}, locking tools and activebindings).\item \code{spec.ar()} now also work for the \code{"ols"} method.(Reported by Hans-Ruedi Kuensch.)\item The initialization of objects from S4 subclasses of\code{"environment"} now allocates a new environment object.\item \command{R CMD check} has more protection against (probablyerroneous) example or test output which is invalid in the currentlocale.\item \code{qr.X()} with column names and pivoting now also pivotsthe column names. (\PR{14438})\item \code{unit.pmax()} and \code{unit.pmin()} in package\pkg{grid} gave incorrect results when all inputs were of length 1.(\PR{14443})\item The parser for \file{NAMESPACE} files ignored misspelleddirectives, rather than signalling an error. For 2.12.x a warningwill be issued, but this will be correctly reported as an errorin later releases. (Reported by Charles Berry.)\item Fix for subsetting of \code{"raster"} objects when only oneof \code{i} or \code{j} is specified.\item \code{grid.raster()} in package \pkg{grid} did not accept\code{"nativeRaster"} objects (like \code{rasterImage()} does).\item Rendering raster images in PDF output was resetting theclipping region.\item Rendering of raster images on cairo X11 device was wrong,particularly when a small image was being scaled up usinginterpolation.With cairo < 1.6, will be better than before, though still alittle clunky. With cairo >= 1.6, should be sweet as.\item Several bugs fixed in \code{read.DIF()}: single columninputs caused errors, cells marked as \code{"character"} couldbe converted to other types, and (in Windows) copying from theclipboard failed.}}}\section{CHANGES IN R VERSION 2.12.0}{\subsection{NEW FEATURES}{\itemize{\item Reading a package's \file{CITATION} file now defaults toASCII rather than Latin-1: a package with a non-ASCII\file{CITATION} file should declare an encoding in its\file{DESCRIPTION} file and use that encoding for the\file{CITATION} file.\item \code{difftime()} now defaults to the \code{"tzone"}attribute of \code{"POSIXlt"} objects rather than to the currenttimezone as set by the default for the \code{tz} argument. (Wishof \PR{14182}.)\item \code{pretty()} is now generic, with new methods for\code{"Date"} and \code{"POSIXt"} classes (based on codecontributed by Felix Andrews).\item \code{unique()} and \code{match()} are now faster oncharacter vectors where all elements are in the global \code{CHARSXP}cache and have unmarked encoding (ASCII). Thanks to MatthewDowle for suggesting improvements to the way the hash code isgenerated in \file{unique.c}.\item The \code{enquote()} utility, in use internally, is exported now.\item \code{.C()} and \code{.Fortran()} now map non-zero returnvalues (other than \code{NA_LOGICAL}) for logical vectors to\code{TRUE}: it has been an implicit assumption that they aretreated as true.\item The \code{print()} methods for \code{"glm"} and \code{"lm"}objects now insert linebreaks in long calls in the same way thatthe \code{print()} methods for \code{"summary.[g]lm"} objectshave long done. This does change the layout of the examples fora number of packages, e.g. \pkg{MASS}. (\PR{14250})\item \code{constrOptim()} can now be used with method\code{"SANN"}. (\PR{14245})It gains an argument \code{hessian} to be passed to\code{optim()}, which allows all the \code{...} arguments to beintended for \code{f()} and \code{grad()}. (\PR{14071})\item \code{curve()} now allows \code{expr} to be an object ofmode \code{"expression"} as well as \code{"call"} and\code{"function"}.\item The \code{"POSIX[cl]t"} methods for \code{Axis()} have beenreplaced by a single method for \code{"POSIXt"}.There are no longer separate \code{plot()} methods for\code{"POSIX[cl]t"} and \code{"Date"}: the default method hasbeen able to handle those classes for a long time. This\emph{inter alia} allows a single date-time object to besupplied, the wish of \PR{14016}.The methods had a different default (\code{""}) for \code{xlab}.\item Classes \code{"POSIXct"}, \code{"POSIXlt"} and\code{"difftime"} have generators \code{.POSIXct()},\code{.POSIXlt()} and \code{.difftime()}. Package authors areadvised to make use of them (they are available from \R 2.11.0) toproof against planned future changes to the classes.The ordering of the classes has been changed, so \code{"POSIXt"}is now the second class. See the document \sQuote{Updatingpackages for changes in R 2.12.x} on\url{http://developer.r-project.org} for the consequences for ahandful of CRAN packages.\item The \code{"POSIXct"} method of \code{as.Date()} allows atimezone to be specified (but still defaults to UTC).\item New \code{list2env()} utility function as an inverse of\code{as.list(<environment>)} and for fast multi-\code{assign()}to existing environment. \code{as.environment()} is now genericand uses \code{list2env()} as list method.\item There are several small changes to output which \sQuote{zap}small numbers, e.g. in printing quantiles of residuals insummaries from \code{"lm"} and \code{"glm"} fits, and in teststatistics in \code{print.anova()}.\item Special names such as \code{"dim"}, \code{"names"}, etc, arenow allowed as slot names of S4 classes, with \code{"class"} theonly remaining exception.\item File \file{.Renviron} can have architecture-specific versionssuch as \file{.Renviron.i386} on systems with sub-architectures.\item \code{installed.packages()} has a new argument\code{subarch} to filter on sub-architecture.\item The \code{summary()} method for \code{packageStatus()} nowhas a separate \code{print()} method.\item The default \code{summary()} method returns an objectinheriting from class \code{"summaryDefault"} which has aseparate \code{print()} method that calls \code{zapsmall()} fornumeric/complex values.\item The startup message now includes the platform and if used,sub-architecture: this is useful where different(sub-)architectures run on the same OS.\item The \code{getGraphicsEvent()} mechanism now allows multiple windowsto return graphics events, through the new functions\code{setGraphicsEventHandlers()}, \code{setGraphicsEventEnv()}, and\code{getGraphicsEventEnv()}. (Currently implemented in the\code{windows()} and \code{X11()} devices.)\item \code{tools::texi2dvi()} gains an \code{index} argument,mainly for use by \command{R CMD Rd2pdf}.It avoids the use of \command{texindy} by \command{texinfo}'s\command{texi2dvi >= 1.157}, since that does not emulate'makeindex' well enough to avoid problems with special characters(such as \samp{(}, \samp{\{}, \samp{!}) in indices.\item The ability of \code{readLines()} and \code{scan()} tore-encode inputs to marked UTF-8 strings on Windows since \R 2.7.0is extended to non-UTF-8 locales on other OSes.\item \code{scan()} gains a \code{fileEncoding} argument tomatch \code{read.table()}.\item \code{points()} and \code{lines()} gain \code{"table"}methods to match \code{plot()}. (Wish of \PR{10472}.)\item \code{Sys.chmod()} allows argument \code{mode} to be avector, recycled along \code{paths}.\item There are \code{|}, \code{&} and \code{xor()} methods forclasses \code{"octmode"} and \code{"hexmode"}, which workbitwise.\item Environment variables \env{R_DVIPSCMD}, \env{R_LATEXCMD},\env{R_MAKEINDEXCMD}, \env{R_PDFLATEXCMD} are no longer usednor set in an \R session. (With the move to\code{tools::texi2dvi()}, the conventional environment variables\env{LATEX}, \env{MAKEINDEX} and \env{PDFLATEX} will be used.\code{options("dvipscmd")} defaults to the value of \env{DVIPS},then to \code{"dvips"}.)\item New function \code{isatty()} to see if terminal connections areredirected.\item \code{summaryRprof()} returns the sampling interval incomponent \code{sample.interval} and only returns in\code{by.self} data for functions with non-zero self times.\item \code{print(x)} and \code{str(x)} now indicate if an emptylist \code{x} is named.\item \code{install.packages()} and \code{remove.packages()} with\code{lib} unspecified and multiple libraries in\code{.libPaths()} inform the user of the library location usedwith a message rather than a warning.\item There is limited support for multiple compressed streams on afile: all of \code{[bgx]zfile()} allow streams to be appended to anexisting file, but \code{bzfile()} reads only the first stream.\item Function \code{person()} in package \pkg{utils} now usesa given/family scheme in preference to first/middle/last, isvectorized to handle an arbitrary number of persons, and gains a\code{role} argument to specify person roles using a controlledvocabulary (the MARC relator terms).\item Package \pkg{utils} adds a new \code{"bibentry"} classfor representing and manipulating bibliographic information inenhanced BibTeX style, unifying and enhancing the previouslyexisting mechanisms.\item A \code{bibstyle()} function has been added to the\pkg{tools} package with default JSS style for rendering\code{"bibentry"} objects, and a mechanism for registering otherrendering styles.\item Several aspects of the display of text help are nowcustomizable using the new \code{Rd2txt_options()} function.options(\code{"help_text_width"}) is no longer used.\item Added \samp{\href} tag to the Rd format, to allowhyperlinks to URLs without displaying the full URL.\item Added \samp{\newcommand} and \samp{\renewcommand} tagsto the Rd format, to allow user-defined macros.\item New \code{toRd()} generic in the \pkg{tools} package toconvert objects to fragments of Rd code, and added\code{"fragment"} argument to \code{Rd2txt()}, \code{Rd2HTML()},and \code{Rd2latex()} to support it.\item Directory \file{R_HOME/share/texmf} now follows the TDSconventions, so can be set as a \code{texmf} tree (\sQuote{rootdirectory} in MiKTeX parlance).\item S3 generic functions now use correct S4 inheritance whendispatching on an S4 object. See \code{?Methods}, section on\dQuote{Methods for S3 Generic Functions} for recommendationsand details.\item \code{format.pval()} gains a \code{...} argument to passarguments such as \code{nsmall} to \code{format()}. (Wish of\PR{9574})\item \code{legend()} supports \code{title.adj}. (Wish of\PR{13415})\item Added support for subsetting \code{"raster"} objects, plusassigning to a subset, conversion to a matrix (of colourstrings), and comparisons (\samp{==} and \samp{!=}).\item Added a new \code{parseLatex()} function (and relatedfunctions \code{deparseLatex()} and \code{latexToUtf8()}) tosupport conversion of bibliographic entries for display in R.\item Text rendering of \samp{\itemize} in help uses a Unicodebullet in UTF-8 and most single-byte Windows locales.\item Added support for polygons with holes to the graphicsengine. This is implemented for the \code{pdf()},\code{postscript()}, \code{x11(type="cairo")}, \code{windows()},and \code{quartz()} devices (and associated raster formats),but not for \code{x11(type="Xlib")} or \code{xfig()} or\code{pictex()}. The user-level interface is the\code{polypath()} function in \pkg{graphics} and\code{grid.path()} in \pkg{grid}.\item File \file{NEWS} is now generated at installation with aslightly different format: it will be in UTF-8 on platforms usingUTF-8, and otherwise in ASCII. There is also a PDF version,\file{NEWS.pdf}, installed at the top-level of the R distribution.\item \code{kmeans(x, 1)} now works. Further, \code{kmeans} nowreturns between and total sum of squares.\item \code{arrayInd()} and \code{which()} gain an argument\code{useNames}. For \code{arrayInd}, the default is now false,for speed reasons.\item As is done for closures, the default \code{print} method forthe formula class now displays the associated environment if it isnot the global environment.\item A new facility has been added for inserting code into apackage without re-installing it, to facilitate testingchanges which can be selectively added and backed out. See\code{?insertSource}.\item New function \code{readRenviron} to (re-)read files in theformat of \file{~/.Renviron} and \file{Renviron.site}.\item \code{require()} will now return \code{FALSE} (and not fail)if loading the package or one of its dependencies fails.\item \code{aperm()} now allows argument \code{perm} to be acharacter vector when the array has named dimnames (as the resultsof \code{table()} calls do). Similarly, \code{array()} allows\code{MARGIN} to be a character vector. (Based on suggestions ofMichael Lachmann.)\item Package \pkg{utils} now exports and documents functions\code{aspell_package_Rd_files()} and\code{aspell_package_vignettes()} for spell checking package Rdfiles and vignettes using Aspell, Ispell or Hunspell.\item Package news can now be given in Rd format, and\code{news()} prefers these \file{inst/NEWS.Rd} files to old-styleplain text \file{NEWS} or \file{inst/NEWS} files.\item New simple function \code{packageVersion()}.\item The PCRE library has been updated to version 8.10.\item The standard Unix-alike terminal interface declares its nameto readline as 'R', so that can be used for conditional sectionsin \file{~/.inputrc} files.\item \sQuote{Writing R Extensions} now stresses that the standardsections in \file{.Rd} files (other than \samp{\alias},\samp{\keyword} and \samp{\note}) are intended to be unique, andthe conversion tools now drop duplicates with a warning.The \file{.Rd} conversion tools also warn about an unrecognized typein a \samp{\docType} section.\item \code{ecdf()} objects now have a \code{quantile()} method.\item \code{format()} methods for date-time objects now attempt to makeuse of a \code{"tzone"} attribute with \code{"\%Z"} and\code{"\%z"} formats, but it is not always possible. (Wish of\PR{14358}.)\item \code{tools::texi2dvi(file, clean = TRUE)} now works in morecases (e.g. where emulation is used and when \file{file} is not inthe current directory).\item New function \code{droplevels()} to remove unused factor levels.\item \code{system(command, intern = TRUE)} now gives an error ona Unix-alike (as well as on Windows) if \code{command} cannot berun. It reports a non-success exit status from running\code{command} as a warning.On a Unix-alike an attempt is made to return the actual exitstatus of the command in \code{system(intern = FALSE)}: previouslythis had been system-dependent but on POSIX-compliant systems thevalue return was 256 times the status.\item \code{system()} has a new argument \code{ignore.stdout}which can be used to (portably) ignore standard output.\item \code{system(intern = TRUE)} and \code{pipe()} connectionsare guaranteed to be available on all builds of \R.\item \code{Sys.which()} has been altered to return \code{""} ifthe command is not found (even on Solaris).\item A facility for defining reference-based S4 classes (in theOOP style of Java, C++, etc.) has been added experimentally topackage \pkg{methods}; see \code{?ReferenceClasses}.\item The \code{predict} method for \code{"loess"} fits gains an\code{na.action} argument which defaults to \code{na.pass} ratherthan the previous default of \code{na.omit}.Predictions from \code{"loess"} fits are now named from the rownames of \code{newdata}.\item Parsing errors detected during \code{Sweave()} processingwill now be reported referencing their original location in thesource file.\item New \code{adjustcolor()} utility, e.g., for simpletranslucent color schemes.\item \code{qr()} now has a trivial \code{lm} method with asimple (fast) validity check.\item An experimental new programming model has been added topackage \pkg{methods} for reference (OOP-style) classes andmethods. See \code{?ReferenceClasses}.\item bzip2 has been updated to version 1.0.6 (bug-fix release).\option{--with-system-bzlib} now requires at least version 1.0.6.\item R now provides \file{jss.cls} and \file{jss.bst} (the classand bib style file for the Journal of Statistical Software) aswell as \file{RJournal.bib} and \file{Rnews.bib}, and\command{R CMD} ensures that the \file{.bst} and \file{.bib} filesare found by BibTeX.\item Functions using the \env{TAR} environment variable no longerquote the value when making \code{system} calls. This allowsvalues such as \samp{tar --force-local}, but does requireadditional quotes in, e.g., \code{TAR = "'/path with spaces/mytar'"}.}}\subsection{DEPRECATED & DEFUNCT}{\itemize{\item Supplying the parser with a character string containing bothoctal/hex and Unicode escapes is now an error.\item File extension \file{.C} for C++ code files in packages isnow defunct.\item \command{R CMD check} no longer supports configurationfiles containing Perl configuration variables: use the environmentvariables documented in \sQuote{R Internals} instead.\item The \code{save} argument of \code{require()} now defaults to\code{FALSE} and \code{save = TRUE} is now deprecated. (Thisfacility is very rarely actually used, and was superseded by the\samp{Depends} field of the \file{DESCRIPTION} file long ago.)\item \command{R CMD check --no-latex} is deprecated in favour of\option{--no-manual}.\item \command{R CMD Sd2Rd} is formally deprecated and will beremoved in \R 2.13.0.}}\subsection{PACKAGE INSTALLATION}{\itemize{\item \code{install.packages()} has a new argument\code{libs_only} to optionally pass \option{--libs-only} to\command{R CMD INSTALL} and works analogously for Windows binaryinstalls (to add support for 64- or 32-bit Windows).\item When sub-architectures are in use, the installedarchitectures are recorded in the \code{Archs} field of the\file{DESCRIPTION} file. There is a new default filter,\code{"subarch"}, in \code{available.packages()} to make use ofthis.Code is compiled in a copy of the \file{src} directory when apackage is installed for more than one sub-architecture: thisavoid problems with cleaning the sources between buildingsub-architectures.\item \command{R CMD INSTALL --libs-only} no longer overrides thesetting of locking, so a previous version of the package will berestored unless \option{--no-lock} is specified.}}\subsection{UTILITIES}{\itemize{\item \command{R CMD Rprof|build|check} are now based on \R ratherthan Perl scripts. The only remaining Perl scripts are thedeprecated \command{R CMD Sd2Rd} and \code{install-info.pl} (usedonly if \code{install-info} is not found) as well as somemaintainer-mode-only scripts.\strong{NB:} because these have been completely rewritten, usersshould not expect undocumented details of previousimplementations to have been duplicated.\command{R CMD} no longer manipulates the environment variables\env{PERL5LIB} and \env{PERLLIB}.\item \command{R CMD check} has a new argument \option{--extra-arch}to confine tests to those needed to check an additionalsub-architecture.Its check for \dQuote{Subdirectory 'inst' contains no files} ismore thorough: it looks for files, and warns if there are onlyempty directories.Environment variables such as \env{R_LIBS} and those used forcustomization can be set for the duration of checking \emph{via} a file\file{~/.R/check.Renviron} (in the format used by\file{.Renviron}, and with sub-architecture specific versionssuch as \file{~/.R/check.Renviron.i386} taking precedence).There are new options \option{--multiarch} to check the packageunder all of the installed sub-architectures and\option{--no-multiarch} to confine checking to thesub-architecture under which \command{check} is invoked. Ifneither option is supplied, a test is done of installedsub-architectures and all those which can be run on the currentOS are used.Unless multiple sub-architectures are selected, the install doneby \code{check} for testing purposes is only of the currentsub-architecture (\emph{via} \command{R CMD INSTALL --no-multiarch}).It will skip the check for non-ascii characters in code or dataif the environment variables \env{_R_CHECK_ASCII_CODE_} or\env{_R_CHECK_ASCII_DATA_} are respectively set to \env{FALSE}.(Suggestion of Vince Carey.)\item \command{R CMD build} no longer creates an \file{INDEX} file(\command{R CMD INSTALL} does so), and \code{--force} removes(rather than overwrites) an existing \file{INDEX} file.It supports a file \file{~/.R/build.Renviron} analogously to\command{check}.It now runs build-time \samp{\Sexpr} expressions in help files.\item \command{R CMD Rd2dvi} makes use of \code{tools::texi2dvi()}to process the package manual. It is now implemented entirely in\R (rather than partially as a shell script).\item \command{R CMD Rprof} now uses \code{utils::summaryRprof()}rather than Perl. It has new arguments to select one of thetables and to limit the number of entries printed.\item \command{R CMD Sweave} now runs \R with \code{--vanilla} sothe environment setting of \env{R_LIBS} will always be used.}}\subsection{C-LEVEL FACILITIES}{\itemize{\item \code{lang5()} and \code{lang6()} (in addition topre-existing \code{lang[1-4]()}) convenience functions for easierconstruction of \code{eval()} calls. If you have your owndefinition, do wrap it inside \code{#ifndef lang5 .... #endif}to keep it working with old and new \R.\item Header \file{R.h} now includes only the C headers it itself needs,hence no longer includes \code{errno.h}. (This helps avoid problemswhen it is included from C++ source files.)\item Headers \file{Rinternals.h} and \file{R_ext/Print.h} includethe C++ versions of \file{stdio.h} and \file{stdarg.h}respectively if included from a C++ source file.}}\subsection{INSTALLATION}{\itemize{\item A C99 compiler is now required, and more C99 language featureswill be used in the \R sources.\item Tcl/Tk >= 8.4 is now required (increased from 8.3).\item System functions \code{access}, \code{chdir} and\code{getcwd} are now essential to configure \R. (In practicethey have been required for some time.)\item \command{make check} compares the output of the examplesfrom several of the base packages to reference output rather thanthe previous output (if any). Expect some differences due todifferences in floating-point computations between platforms.\item File \file{NEWS} is no longer in the sources, but generated aspart of the installation. The primary source for changes is now\file{doc/NEWS.Rd}.\item The \code{popen} system call is now required to build \R.This ensures the availability of \code{system(intern = TRUE)},\code{pipe()} connections and printing from \code{postscript()}.\item The \command{pkg-config} file \file{libR.pc} now also workswhen \R is installed using a sub-architecture.\item \R has always required a BLAS that conforms to IE60559arithmetic, but after discovery of more real-world problems causedby a BLAS that did not, this is tested more thoroughly in thisversion.}}\subsection{BUG FIXES}{\itemize{\item Calls to \code{selectMethod()} by default no longer cacheinherited methods. This could previously corrupt methods used by\code{as()}.\item The densities of non-central chi-squared are now more accuratein some cases in the extreme tails, e.g. \code{dchisq(2000, 2,1000)}, as a series expansion was truncated too early.(\PR{14105})\item \code{pt()} is more accurate in the left tail for \code{ncp}large, e.g. \code{pt(-1000, 3, 200)}. (\PR{14069})\item The default C function (\code{R_binary}) for binary ops nowsets the S4 bit in the result if either argument is an S4 object.(\PR{13209})\item \code{source(echo=TRUE)} failed to echo comments thatfollowed the last statement in a file.\item S4 classes that contained one of \code{"matrix"},\code{"array"} or \code{"ts"} and also another class now acceptsuperclass objects in \code{new()}. Also fixes failure to call\code{validObject()} for these classes.\item Conditional inheritance defined by argument \code{test} in\code{methods::setIs()} will no longer be used in S4 methodselection (caching these methods could give incorrect results).See \code{?setIs}.\item The signature of an implicit generic is now used by\code{setGeneric()} when that does not use a definition norexplicitly set a signature.\item A bug in \code{callNextMethod()} for some examples with\code{"..."} in the arguments has been fixed. See file\file{src/library/methods/tests/nextWithDots.R} in the sources.\item \code{match(x, table)} (and hence \code{\%in\%}) now treat\code{"POSIXlt"} consistently with, e.g., \code{"POSIXct"}.\item Built-in code dealing with environments (\code{get()},\code{assign()}, \code{parent.env()}, \code{is.environment()} andothers) now behave consistently to recognize S4 subclasses;\code{is.name()} also recognizes subclasses.\item The \code{abs.tol} control parameter to \code{nlminb()}now defaults to \code{0.0} to avoid false declarations ofconvergence in objective functions that may go negative.\item The standard Unix-alike termination dialog to ask whether tosave the workspace takes a EOF response as \code{n} to avoidproblems with a damaged terminal connection. (\PR{14332})\item Added \code{warn.unused} argument to \code{hist.default()}to allow suppression of spurious warnings about graphicalparameters used with \code{plot=FALSE}. (\PR{14341})\item \code{predict.lm()}, \code{summary.lm()}, and indeed\code{lm()} itself had issues with residual DF in zero-weightedcases (the latter two only in connection with emptymodels). (Thanks to Bill Dunlap for spotting the\code{predict()} case.)\item \code{aperm()} treated \code{resize = NA} as \code{resize =TRUE}.\item \code{constrOptim()} now has an improved convergencecriterion, notably for cases where the minimum was (very close to)zero; further, other tweaks inspired from code proposals by RaviVaradhan.\item Rendering of S3 and S4 methods in man pages has beencorrected and made consistent across output formats.\item Simple markup is now allowed in \samp{\title} sectionsin \file{.Rd} files.\item The behaviour of \code{as.logical()} on factors (to use thelevels) was lost in \R 2.6.0 and has been restored.\item \code{prompt()} did not backquote some default arguments inthe \samp{\usage} section. (Reported by Claudia Beleites.)\item \code{writeBin()} disallows attempts to write 2GB ormore in a single call. (\PR{14362})\item \code{new()} and \code{getClass()} will now work if Classis a subclass of \code{"classRepresentation"} and should also befaster in typical calls.\item The \code{summary()} method for data frames makes a betterjob of names containing characters invalid in the current locale.\item \code{[[} sub-assignment for factors could create an invalidfactor (reported by Bill Dunlap).\item \code{Negate(f)} would not evaluate argument \code{f}until first use of returned function (reported by Olaf Mersmann).\item \code{quietly=FALSE} is now also an optional argument of\code{library()}, and consequently, \code{quietly} is nowpropagated also for loading dependent packages, e.g., in\code{require(*, quietly=TRUE)}.\item If the loop variable in a \code{for} loop was deleted, itwould be recreated as a global variable. (Reported by RadfordNeal; the fix includes his optimizations as well.)\item Task callbacks could report the wrong expression whenthe task involved parsing new code. (\PR{14368})\item \code{getNamespaceVersion()} failed; this was anaccidental change in 2.11.0. (\PR{14374})\item \code{identical()} returned \code{FALSE} for externalpointer objects even when the pointer addresses were the same.\item \code{L$a@x[] <- val} did not duplicate in a case it should have.\item \code{tempfile()} now always gives a random file name (evenif the directory is specified) when called directly afterstartup and before the \R RNG had been used. (\PR{14381})\item \code{quantile(type=6)} behaved inconsistently. (\PR{14383})\item \code{backSpline(.)} behaved incorrectly when the knotsequence was decreasing. (\PR{14386})\item The reference BLAS included in \R was assuming that\code{0*x} and \code{x*0} were always zero (whereas they could be\code{NA} or \code{NaN} in IEC 60559 arithmetic). This was seenin results from \code{tcrossprod}, and for example that\code{log(0) \%*\% 0} gave \code{0}.\item The calculation of whether text was completely outsidethe device region (in which case, you draw nothing)was wrong for screen devices (which have [0, 0] at top-left).The symptom was (long) text disappearing whenresizing a screen window (to make it smaller). (\PR{14391})\item \code{model.frame(drop.unused.levels = TRUE)} did nottake into account \code{NA} values of factors when deciding todrop levels. (\PR{14393})\item \code{library.dynam.unload} required an absolute path for\code{libpath}. (\PR{14385})Both \code{library()} and \code{loadNamespace()} now recordabsolute paths for use by \code{searchpaths()} and\code{getNamespaceInfo(ns, "path")}.\item The self-starting model \code{NLSstClosestX} failed if somedeviation was exactly zero. (\PR{14384})\item \code{X11(type = "cairo")} (and other devices such as\code{png} using cairographics) and which use Pango font selectionnow work around a bug in Pango when very small fonts (those withsizes between 0 and 1 in Pango's internal units) are requested.(\PR{14369})\item Added workaround for the font problem with \code{X11(type ="cairo")} and similar on Mac OS X whereby italic and bold styleswere interchanged. (\PR{13463} amongst many other reports.)\item \code{source(chdir = TRUE)} failed to reset the workingdirectory if it could not be determined -- that is now an error.\item Fix for crash of \code{example(rasterImage)} on\code{x11(type="Xlib")}.\item Force Quartz to bring the on-screen display up-to-dateimmediately before the snapshot is taken by \code{grid.cap()}in the Cocoa implementation. (\PR{14260})\item \code{model.frame} had an unstated 500 byte limit onvariable names. (Example reported by Terry Therneau.)\item The 256-byte limit on names is now documented.\item Subassignment by \code{[}, \code{[[} or \code{$} on anexpression object with value \code{NULL} coerced the object to alist.}}}\section{CHANGES IN R VERSION 2.11.1 patched}{\subsection{NEW FEATURES}{\itemize{\item \code{install.packages()} has a new optional argument\code{INSTALL_opts} which can be used to pass options to\command{R CMD INSTALL} for source-package installs.\item \command{R CMD check} now runs the package-specific testswith \env{LANGUAGE=en} to facilitate comparison to\file{.Rout.save} files.\item \code{sessionInfo()} gives more detailed platforminformation, including 32/64-bit and the sub-architecture if oneis used.}}\subsection{DEPRECATED & DEFUNCT}{\itemize{\item The use of Perl configuration variables for \command{R CMDcheck} (as previously documented in \sQuote{Writing RExtensions}) is deprecated and will be removed in \R 2.12.0. Usethe environment variables documented in \sQuote{R Internals}instead.}}\subsection{BUG FIXES}{\itemize{\item \command{R CMD Rd2dvi} failed if run from a path containingspace(s). This also affected \command{R CMD check}, which calls\command{Rd2dvi}.\item \code{stripchart()} could fail with an empty factorlevel. (\PR{14317})\item Text help rendering of \samp{\tabular\{\}} has beenimproved: under some circumstances leading blank columns werenot rendered.\item \code{strsplit(x, fixed=TRUE)} marked UTF-8 strings with thelocal encoding when no splits were found.\item \code{weighted.mean(NA, na.rm=TRUE)} and similar now returns\code{NaN} again, as it did prior to \R 2.10.0.\item \command{R CMD} had a typo in its detection of whether theenvironment variable \env{TEXINPUTS} was set (reported by MartinMorgan).\item The command-line parser could mistake\option{--file=size...} for one of the options for setting limitsfor Ncells or Vcells.\item The internal \code{strptime()} could corrupt its copy of thetimezone which would then lead to spurious warnings. (\PR{14338})\item \code{dir.create(recursive = TRUE)} could fail if one of thecomponents existed but was a directory on a read-only file system.(Seen on Solaris, where the error code returned is not even listedas possible on the man page.)\item The \code{postscript()} and \code{pdf()} devices will nowallow \code{lwd} values less than 1 (they used to force suchvalues to be 1).\item Fixed font face for CID fonts in \code{pdf()} graphics output.(\PR{14326})\item \code{GERaster()} now checks for width or height of zero anddoes nothing in those cases; previously the behaviour wasundefined, probably device-specific, and possibly dangerous.\item \code{wilcox.test(x, y, conf.int = TRUE)} failed with an unhelpfulmessage if \code{x} and \code{y} were constant vectors, andsimilarly in the one-sample case. (\PR{14329})\item Improperly calling \code{Recall()} from outside a functioncould cause a segfault. (Reported by Robert McGehee.)\item \samp{\Sexpr[result=rd]} in an Rd file added aspurious newline, which was displayed as extra whitespace whenrendered.\item \code{require(save = TRUE)} recorded the names of packagesit failed to load.\item \code{packageStatus()} could return a data frame withduplicate row names which could then not be printed.\item \code{txtProgressBar(style = 2)} did not work correctly.\code{txtProgressBar(style = 3)} did not display until anon-minimum value was set.\item \code{contour()} did not display dashed line typesproperly when contour lines were labelled. (Reported byDavid B. Thompson.)\item \code{tools::undoc()} again detects undocumented dataobjects. Of course, this also affects \command{R CMD check}.\item \code{ksmooth(x,NULL)} no longer segfaults.\item \code{approxfun()}, \code{approx()}, \code{splinefun()}and \code{spline()} could be confused by \code{x} values thatwere different but so close as to print identically.(\PR{14377})}}}\section{CHANGES IN R VERSION 2.11.1}{\subsection{NEW FEATURES}{\itemize{\item \command{R CMD INSTALL} checks if dependent packages areavailable early on in the installation of source packages,thereby giving clearer error messages.\item \command{R CMD INSTALL --build} now names the file in theformat used for Mac OS X binary files on that platform.\item \code{BIC()} in package \pkg{stats4} now also works withmultiple fitted models, analogously to \code{AIC()}.}}\subsection{DEPRECATED & DEFUNCT}{\itemize{\item Use of file extension \file{.C} for C++ code in packages is nowdeprecated: it has caused problems for some \command{make}s oncase-insensitive file systems (although it currently workswith the recommended toolkits).}}\subsection{INSTALLATION}{\itemize{\item Command \command{gnutar} is preferred to \command{tar}when configure sets \env{TAR}. This is needed on Mac OS 10.6,where the default \code{tar}, \code{bsdtar 2.6.2}, has beenreported to produce archives with illegal extensions to tar(according to the POSIX standard).}}\subsection{BUG FIXES}{\itemize{\item The C function \code{mkCharLenCE} now no longer reads past\code{len} bytes (unlikely to be a problem except in usercode). (\PR{14246})\item On systems without any default \env{LD_LIBRARY_PATH} (noteven \file{/usr/local/lib}), \env{[DY]LIB_LIBRARY_PATH} is nowset without a trailing colon. (\PR{13637})\item More efficient implementation of \code{utf8ToInt()} on longmulti-byte strings with many multi-byte characters. (\PR{14262})\item \code{aggregate.ts()} gave platform-dependent results due torounding error for \code{ndeltat != 1}.\item \code{package.skeleton()} sometimes failed to fix filenamesfor \file{.R} or \file{.Rd} files to start with an alphanumeric.(\PR{14253})It also failed when only an S4 class without any methods wasdefined. (\PR{14280})\item \code{splinefun(method = "monoH.FC")} was notquite monotone in rare cases. (\PR{14215})\item \code{Rhttpd} no longer crashes due to \code{SIGPIPE} whenthe client closes the connection prematurely. (\PR{14266})\item \code{format.POSIXlt()} could cause a stack overflow andcrash when used on very long vectors. (\PR{14267})\item \code{Rd2latex()} incorrectly escaped special characters in\samp{\usage} sections.\item \code{mcnemar.test()} could alter the levels (droppingunused levels) if passed \code{x} and \code{y} as factors(reported by Greg Snow).\item \command{Rd2pdf} sometimes needed a further\command{pdflatex} pass to get hyperlinked pages correct.\item \code{interaction()} produced malformed results when levels wereduplicated, causing segfaults in \code{split()}.\item \code{cut(d, breaks = <n>)} now also works for \code{"Date"}or \code{"POSIXt"} argument \code{d}.(\PR{14288})\item \code{memDecompress()} could decompress incompletely rare\code{xz}-compressed input due to incorrect documentation of\command{xz utils}. (Report and patch from Olaf Mersmann.)\item The S4 \code{initialize()} methods for \code{"matrix"},\code{"array"}, and \code{"ts"} have been fixed to call\code{validObject()}. (\PR{14284})\item \command{R CMD INSTALL} now behaves the same way with orwithout \option{--no-multiarch} on platforms with only oneinstalled architecture. (It used to clean the \file{src}directory without \option{--no-multiarch}.)\item \code{[<-.data.frame} was not quite careful enough inassigning (and potentially deleting) columnsright-to-left. (\PR{14263})\item \code{rbeta(n, a, b)} no longer occasionally returns\code{NaN} for \code{a >> 1 > b}. (\PR{14291})\item \code{pnorm(x, log.p = TRUE)} could return \code{NaN} not\code{-Inf} for \code{x} near (minus for \code{lower.tail=TRUE})the largest representable number.\item Compressed data files \file{*.(txt|tab|csv).(gz|bz2|xz)}were not recognized for the list of data topics and hence forpackages using \code{LazyData}. (\PR{14273})\item \code{textConnection()} did an unnecessary translation onstrings in a foreign encoding (e.g. UTF-8 strings on Windows) andso was slower than it could have been on very long input strings.(\PR{14286})\item \code{tools::Rd2txt()} did not render poorly written Rdfiles consistently with other renderers.It computed widths of strings that would be \code{print()}ed withescapes incorrectly, for example in the computation of columnwidth for \samp{\tabular}.\item \code{na.action()} did not extract the \code{na.action}component as documented.\item \code{do.call()}ing \code{NextMethod} in erronous ways nolonger segfaults. (\PR{13487})}}}\section{CHANGES IN R VERSION 2.11.0}{\subsection{SIGNIFICANT USER-VISIBLE CHANGES}{\itemize{\item Packages must have been installed under \R >= 2.10.0, as thecurrent help system is the only one now supported.\item A port to 64-bit Windows is now available as well as binarypackage repositiories: see the \sQuote{R Administration andInstallation Manual}.\item Argument matching for primitive functions is now done in thesame way as for interpreted functions except for the deliberateexceptions\preformatted{call switch .C .Fortran .Call .External}all of which use positional matching for their first argument,and also some internal-use-only primitives.\item The default device for command-line \R at the console on Mac OS Xis now \code{quartz()} and not \code{X11()}.}}\subsection{NEW FEATURES}{\itemize{\item The \code{open} modes for connections are now interpretedmore consistently. \code{open = "r"} is now equivalent to\code{open = "rt"} for all connections. The default \code{open =""} now means \code{"rt"} for all connections except thecompressed-file connections \code{gzfile()}, \code{bzfile()} and\code{xzfile()} for which it means \code{"rb"}.\item \command{R CMD INSTALL} now uses the internal \code{untar()}function in package \pkg{utils}: this ensures that all platformscan install \command{bzip2}- and \command{xz}-compressedtarballs. In case this causes problems (as it has on someWindows file systems when run from Cygwin tools) it can beoverridden by the environment variable \env{R_INSTALL_TAR}:setting this to a modern external tar program will speed upunpacking of large (tens of Mb or more) tarballs.\item \code{help(try.all.packages = TRUE)} is much faster(although the time taken by the OS to find all the packages thefirst time it is used can dominate the time).\item \command{R CMD check} has a new option \option{--timings}to record per-example timings in file\file{<pkg>.Rcheck/<pkg>-Ex.timings}.\item The TRE library has been updated to version 0.8.0 (minor bugfixes).\item \code{grep[l]}, \code{[g]sub} and \code{[g]regexpr} now workin bytes in an 8-bit locales if there is no marked UTF-8 inputstring: this will be somewhat faster, and for \code{[g]sub()}give the result in the native encoding rather than in UTF-8(which returns to the behaviour prior to \R 2.10.0).\item A new argument \code{skipCalls} has been added to\code{browser()} so that it can report the original context whencalled by other debugging functions.\item More validity checking of UTF-8 and MBCS strings is done by\code{agrep()} and the regular-expression matching functions.\item The undocumented restriction on \code{gregexpr()} to\code{length(text) > 0} has been removed.\item Package \pkg{tcltk} now sends strings to Tcl in UTF-8: thismeans that strings with a marked UTF-8 encoding are supported innon-UTF-8 locales.\item The graphics engine now supports rendering of raster (bitmap)images, though not all graphics devices can provide (full)support. Packages providing graphics devices (e.g., \code{Cairo},\code{RSvgDevice}, \code{cairoDevice}) will need to be reinstalled.There is also support in the graphics engine for capturingraster images from graphics devices (again not supportedon all graphics devices).\item \command{R CMD check} now also checks if the package andnamespace can be unloaded: this provides a check of the\code{.Last.lib()} and \code{.onUnload()} hook functions (unless\option{--install=fake}).\item \code{prop.table(x)} now accepts a one-dimensional table for\code{x}.\item A new function \code{vapply()} has been added, based on asuggestion from Bill Dunlap. It requires that a template for thefunction value be specified, and uses it to determine the outputtype and to check for consistency in the function values.\item The main HTML help page now links to a reformatted copy ofthis \file{NEWS} file. (Suggested by Henrik Bengtsson.) Packageindex files link to the package \file{DESCRIPTION} and\file{NEWS} files and a list of demos when using dynamic help.\item The \code{[} method for class \code{"AsIs"} allows the nextmethod to change the underlying class. (Wish of JensOehlschlägel.)\item \code{write.csv[2]} no longer allow argument \code{append}to be changed: as ever, direct calls to \code{write.table()} givemore flexibility as well as more room for error.\item The index page for HTML help for a package now collapsesmultiple signatures for S4 methods into a single entry.\item The use of \code{.required} by \code{require()} and\code{detach()} has been replaced by \code{.Depends} which is setfrom the \code{Depends} field of a package (even in packages withnamespaces). By default \code{detach()} prevents suchdependencies from being detached: this can be overridden by theargument \code{force}.\item \code{bquote()} has been extended to work on functiondefinitions. (Wish of\PR{14031}).\item \code{detach()} when applied to an object other than apackage returns the environment that has been detached, toparallel \code{attach()}.\item \code{readline()} in non-interactive use returns \code{""}and does not attempt to read from the \sQuote{terminal}.\item New function \code{file_ext()} in package \pkg{tools}.\item \code{xtfrm()} is now primitive and internally generic, asthis allows S4 methods to be set on it without name-space scopingissues.There are now \code{"AsIs"} and \code{"difftime"} methods, andthe default method uses \code{unclass(x)} if \code{is.numeric(x)}is true (which will be faster but relies on \code{is.numeric()}having been set correctly for the class).\item \code{is.numeric(x)} is now false for a \code{"difftime"}object (multiplication and division make no sense for suchobjects).\item The default method of \code{weighted.mean(x, w)} coerces\code{w} to be numeric (aka double); previously only integerweights were coerced. Zero weights are handled specially so aninfinite value with zero weight does not force an \code{NaN}result.There is now a \code{"difftime"} method.\item \code{bug.report()} now has arguments \code{package} and\code{lib.loc} to generate bug reports about packages. Whenthis is used, it looks for a \code{BugReports} field in thepackage \file{DESCRIPTION} file, which will be assumed to be aURL at which to submit the report, and otherwise generates anemail to the package maintainer. (Suggested by BarryRowlingson.)\item \code{quantile()} now has a method for the date-time class\code{"POSIXt"}, and types 1 and 3 (which never interpolate) workfor Dates and ordered factors.\item \code{length(<POSIXlt>)} now returns the length of thecorresponding abstract timedate-vector rather than always 9 (thelength of the underlying list structure). (Wish of \PR{14073}and \PR{10507}.)\item The \code{readline} completion backend no longer sortspossible completions alphabetically (e.g., function argumentnames) if \R was built with \code{readline >= 6}.\item \code{select.list()} gains a \code{graphics} argument toallow Windows/Mac users to choose the text interface. Thischanges the behaviour of \code{new.packages(ask=TRUE)} to be like\code{update.packages(ask=TRUE)} on those platforms in using atext menu: use ask=\code{"graphics"} for a graphical menu.\item New function \code{chooseBioCmirror()} to set the\code{"BioC_mirror"} option.\item The \R grammar now prevents using the argument \code{name}in signatures of S4 methods for \code{$} and \code{$<-}, sincethey will always be called with a character string value for\code{name}. The implicit S4 generic functions have beenchanged to reflect this: packages which included \code{name} inthe signature of their methods need to be updated andre-installed.\item The handling of the \code{method} argument of \code{glm()}has been refined following suggestions by Ioannis Kosmidis andHeather Turner.\item \code{str()} gains a new argument \code{list.len} withdefault 99, limiting the number of \code{list()} items (perlevel), thanks to suggestions from David Winsenius.\item Having formal arguments of an S4 method in a different orderfrom the generic is now an error (the warning having beenignored by some package maintainers for a long time).\item New functions \code{enc2native()} and \code{enc2utf8()}convert character vectors with possibly marked encodings to thecurrent locale and UTF-8 respectively.\item Unrecognized escapes and embedded nuls in character strings arenow an error, not just a warning. Thus option \code{"warnEscapes"}is no longer needed. \code{rawToChar()} now removes trailing nulssilently, but other embedded nuls become errors.\item Informational messages about masked objects displayed when apackage is attached are now more compact, using \code{strwrap()}instead of one object per line.\item \code{print.rle()} gains argument \code{prefix}.\item \code{download.file()} gains a \code{"curl"} method, mainlyfor use on platforms which have \command{curl} but not\command{wget}, but also for some hard-to-access URLs.\item In \code{Rd}, \samp{\eqn} and \samp{\deqn} will render inHTML (and convert to text) upper- and lower-case Greek letters(entered as \samp{\alpha} \dots), \samp{\ldots}, \samp{\dots},\samp{\ge} and \samp{\le}.\item \code{utf8ToInt()} and \code{intToUtf8()} now map \code{NA} inputsto \code{NA} outputs.\item \code{file()} has a new argument \code{raw} which may helpif it is used with something other than a regular file, e.g. acharacter device.\item New function \code{strtoi()}, a wrapper for the C function\code{strtol}.\item \code{as.octmode()} and \code{as.hexmode()} now allow inputsof length other than one.The \code{format()} and \code{print()} methods for\code{"octmode"} now preserve names and dimensions (as those for\code{"hexmode"} did).The \code{format()} methods for classes \code{"octmode"} and\code{"hexmode"} gain a \code{width} argument.\item \code{seq.int()} returns an integer result in some further caseswhere \code{seq()} does, e.g. \code{seq.int(1L, 9L, by = 2L)}.\item Added \samp{\subsection\{\}\{\}} macro to Rd syntax, forsubsections within sections.\item n-dimensional arrays with dimension names can now be indexedby an n-column character matrix. The indices are matched againstthe dimension names. \code{NA} indices are propagated to theresult. Unmatched values and \code{""} are not allowed andresult in an error.\item \code{interaction(drop=TRUE)} uses less memory (related to\PR{14121}).\item \code{summary()} methods have been added to the\code{"srcref"} and \code{"srcfile"} classes, and variousencoding issues have been cleaned up.\item If option \code{"checkPackageLicense"} is set to \code{TRUE} (notcurrently the default), users will be asked to agree tonon-known-to-be-FOSS package licences at first use.\item Checking \code{setAs(a, b)} methods only gives a messageinstead of a warning, when one of \code{a} or \code{b} isunknown.\item New function \code{norm()} to compute a matrix norm.\code{norm()} and also \code{backsolve()} and \code{sample()}have implicit S4 generics.\item Files \file{Renviron.site} and \file{Rprofile.site} can havearchitecture-specific versions on systems with sub-architectures.\item \command{R CMD check} now (by default) also checks Rd filesfor auto-generated content in need of editing, and missingargument descriptions.\item \code{aggregate()} gains a formula method thanks to acontribution by Arni Magnusson. The data frame method now allowssummary functions to return arbitrarily many values.\item \code{path.expand()} now propagates \code{NA} values ratherthan converting them to \code{"NA"}.\item \code{file.show()} now disallows \code{NA} values for file names,headers, and pager.\item The \sQuote{fuzz} used by \code{seq()} and \code{seq.int()} hasbeen reduced from \code{1e-7} to \code{1e-10}, which should beample for the double-precision calculations used in \R. Itensures that the fuzz never comes into play with sequences ofintegers (wish of \PR{14169}).\item The default value of \code{RSiteSearch(restrict=)} has beenchanged to include vignettes but to exclude R-help. The R-helparchives available have been split, with a new option of\code{"Rhelp10"} for those from 2010.\item New function \code{rasterImage()} in the \code{graphics}package for drawing raster images.\item \code{stats:::extractAIC.coxph()} now omits aliased termswhen computing the degrees of freedom (suggestion of TerryTherneau).\item \code{cor()} and \code{cov()} now test for misuse withnon-numeric arguments, such as the non-bug report \PR{14207}.\item \code{pchisq(ncp =, log.p = TRUE)} is more accurate forprobabilities near one. E.g. \code{pchisq(80, 4, ncp=1,log.p=TRUE)}. (Maybe what was meant in \PR{14216}.)\item \code{maintainer()} has been added, to give convenientaccess to the name of the maintainer of a package (contributed byDavid Scott).\item \code{sample()} and \code{sample.int()} allow zero items tobe sampled from a zero-length input. \code{sample.int()} gains adefault value \code{size=n} to be more similar to\code{sample()}.\item \code{switch()} returned \code{NULL} on error (notpreviously documented on the help page): it now does soinvisibly, analogously to if-without-else.It is now primitive: this means that argument \code{EXPR} isalways matched to the first argument and there is no danger ofpartial matching to later named arguments.\item Primitive functions \code{UseMethod()}, \code{attr()},\code{attr<-()}, \code{on.exit()}, \code{retracemem()} and\code{substitute()} now use standard argument matching (ratherthan positional matching). This means that all multi-argumentprimitives which are not internal now use standard argumentmatching except where positional matching is desirable (as for\code{switch()}, \code{call()}, \code{.C()} ...).\item All the one-argument primitives now check that any namesupplied for their first argument is a partial match to theargument name as documented on the help page: this alsoapplies to replacement functions of two arguments.\item \code{base::which()} uses a new \code{.Internal} functionwhen \code{arr.ind} is \code{FALSE} resulting in a 10x speedup.Thanks to Patrick Aboyoun for implementation suggestions.\item Help conversion to text now uses the first part of\samp{\enc\{\}\{\}} markup if it is representable in the currentoutput encoding. On the other hand, conversion to LaTeX with thedefault \code{outputEncoding = "ASCII"} uses the second part.\item A new class \code{"listOfMethods"} has been introduced torepresent the methods in a methods table, to replace thedeprecated class \code{"MethodsList"}.\item \code{any()} and \code{all()} return early if possible.This may speed up operations on long vectors.\item \code{strptime()} now accepts \code{"\%z"} (for the offsetfrom UTC in the RFC822 format of \code{+/-hhmm}).\item The PCRE library has been updated to version 8.02, a bug-fixrelease which also updates tables to Unicode 5.02.\item Functions which may use a graphical \code{select.list()}(including \code{menu()} and \code{install.packages()}) now checkon a Unix-alike that Tk can be started (and not just\code{capabilities("tcltk") && capabilities("X11")}).\item The parser no longer marks strings containing octal or hexescapes as being in UTF-8 when entered in a UTF-8 locale.\item On platforms with cairo but not Pango (notably Mac OS X) theinitial default \code{X11()} type is set to \code{"Xlib"}: this avoidsseveral problems with font selection when done by cairo ratherthan Pango (at least on Mac OS X).\item New function \code{arrayInd()} such that \code{which(x,arr.ind = TRUE)} for an array 'x' is now equivalent to\code{arrayInd(which(x), dim(x), dimnames(x))}.}}\subsection{DEPRECATED & DEFUNCT}{\itemize{\item Bundles of packages are defunct.\item \code{stats::clearNames()} is defunct: use \code{unname()}.\item Basic regular expressions are defunct, and\code{strsplit()}, \code{grep()}, \code{grepl()}, \code{sub()},\code{gsub()}, \code{regexpr()} and \code{gregexpr()} no longerhave an \code{extended} argument.\item \code{methods::trySilent()} is defunct.\item \code{index.search()} (which was deprecated in 2.10.0) is nolonger exported and has a different argument list.\item Use of multiple arguments to \code{return()} is now defunct.\item The use of \code{UseMethod()} with more than two argumentsis now defunct.\item In the \pkg{methods} package, the \code{"MethodsList"}metadata objects which had been superseded by hash tables(environments) since \R 2.8.0 are being phased out. Objects ofthis class are no longer assigned or used as metadata by thepackage.\code{getMethods()} is now deprecated, with its internal use replacedby \code{findMethods()} and other changes. Creating objects from the\code{"MethodsList"} class is also deprecated.\item Parsing strings containing both octal/hex and Unicode escapesnow gives a warning and will become an error in \R 2.12.0.}}\subsection{INSTALLATION}{\itemize{\item UTF-8 is now used for the reference manual and packagemanuals. This requires LaTeX \sQuote{2005/12/01} or later.\item \command{configure} looks for a POSIX compliant\command{tr}, Solaris's \command{/usr/ucb/tr} having been foundto cause \command{Rdiff} to malfunction.\item \command{configure} is now generated with \command{autoconf2.65}, which works better on recent systems and on Mac OS X.}}\subsection{PACKAGE INSTALLATION}{\itemize{\item Characters in \R source which are not translatable to thecurrent locale are now handled more tolerantly: these will beconverted to hex codes with a warning. Such characters areonly really portable if they appear in comments.\item \command{R CMD INSTALL} now tests that the installed packagecan be loaded (and backs out the installation if it cannot): thiscan be suppressed by \option{--no-test-load}. This avoidsinstalling/updating a package that cannot be used: common causesof failures to load are missing/incompatible external softwareand missing/broken dependent packages.\item Package installation on Windows for a package with a\file{src} directory now checks if a DLL is created unless thereis a \file{src/Makefile.win} file: this helps catch brokeninstallations where the toolchain has not reported problems inbuilding the DLL. (Note: this can be any DLL, not just one named\file{<pkg-name>.dll}.)}}\subsection{BUG FIXES}{\itemize{\item Using \code{with()}, \code{eval()} etc with a list with someunnamed elements now works.(\PR{14035})\item The \code{"quick"} dispatch of S4 methods for primitivefunctions was not happening, forcing a search each time.(Dispatch for closures was not affected.) A side effect is thatdefault values for arguments in a method that do not havedefaults in the generic will now be ignored.\item Trying to dispatch S4 methods for primitives during the searchfor inherited methods slows that search down and potentiallycould cause an infinite recursion. An internal switch wasadded to turn off all such methods from\code{findInheritedMethods()}.\item \R framework installation (on Mac OS X) would not workproperly if a rogue \code{Resources} directory was present at thetop level. Such a non-symlink will now be renamed to\code{Resources.old} (and anything previously named\code{Resources.old} removed) as part of the frameworkinstallation process.\item The checks for conforming S4 method arguments could failwhen the signature of the generic function omitted some of theformal arguments (in addition to \code{...}). Arguments omittedfrom the method definition but conforming (per the documentation)should now be ignored (treated as \code{"ANY"}) in dispatching.\item The computations for S4 method evaluation when \code{...}was in the signature could fail, treating \code{...} as anordinary symbol. This has been fixed, for the known cases.\item Various \code{ar()} fitting methods have more protection forsingular fits.\item \code{callNextMethod} now works again with the \code{drop=}argument in \samp{[}\item \code{parse()} and \code{parse_Rd()} miscounted columns whenmultibyte UTF-8 characters were present.\item Formatting of help pages has had minor improvements: extrablank lines have been removed from the text format, and emptypackage labels removed from HTML.\item \code{cor(A, B)} where \code{A} is \eqn{n \times 1}{n x 1}and \code{B} a 1-dimensional array segfaulted or gave an internalerror. (The case \code{cor(B, A)} was\PR{7116}.)\item \code{cut.POSIXt()} applied to a start value after the DSTtransition on a DST-change day could give the wrong time forargument \code{breaks} in units of days or longer. (\PR{14208})\item \code{do_par()} \code{UNPROTECT}ed too early (\PR{14214})\item Subassignment \code{x[[....]] <- y} didn't check for azero-length right hand side, and inserted a rubbishvalue. (\PR{14217})\item \code{fisher.test()} no longer gives a P-value \strong{very}slightly > 1, in some borderline cases.\item Internal function \code{matchArgs()} no longer modifies thegeneral purpose bits of the \code{SEXP}s that make up the formalslist of \R functions. This fixes an invalid error message thatwould occur when a garbage collection triggered a second call tomatchArgs for the same function \emph{via} a finalizer.\item \code{gsub()} in 2.10.x could fail from stack overflow forextremely long strings due to temporary data being allocated onthe stack. Also, \code{gsub()} with \code{fixed=TRUE} is in somecircumstances considerably faster.\item Several primitives, including \code{attributes()},\code{attr<-()} \code{interactive()}, \code{nargs()} and\code{proc.time()}, did not check that they were called with thecorrect number of arguments.\item A potential race condition in \code{list.files()} when otherprocesses are operating on the directory has been fixed; the codenow dynamically allocates memory for file listings in a singlepass instead of making an initial count pass.\item \code{mean(x, trim=, na.rm = FALSE)} failed to return \code{NA} if\code{x} contained missing values. (Reported by Bill Dunlap.)\item Extreme tail behavior of, \code{pbeta()} \{and hence\code{pf()}\}, e.g., \code{pbeta(x, 3, 2200, lower.tail=FALSE,log.p=TRUE)} now returns finite values instead of jumping to\code{-Inf} too early. (\PR{14230}).\item \code{parse(text=x)} misbehaved for objects \code{x} thatwere not coerced internally to character, notably symbols.(Reported to R-devel by Bill Dunlap.)\item The internal C function \code{coerceSymbol} now handlescoercion to character, and warns if coercion fails (rather thansilently returning \code{NULL}). This allows a name to be givenwhere a character vector is required in functions which coerceinternally.\item The interpretation by \code{strptime()} of \code{"\%c"} wasnon-standard (not that it is ever advisable to use locale- andsystem-specific input formats).\item capabilities(\code{"X11"}) now works the same way on Mac OS X as onother platforms (and as documented: it was always true for Rbuilt with \option{--with-aqua}, as the CRAN builds are).\item The \code{X11()} device with cairo but not Pango (notably Mac OS X)now checks validity of text strings in UTF-8 locales (sincePango does but cairo it seems does not).\item \code{read.fwf()} misread multi-line records when n was specified.(\PR{14241})\item \code{all.equal(tolerance = e)} passes the numerictolerance also to the comparison of the attributes.\item \code{pgamma(0, 0)}, a boundary case, now returns 0, itslimit from the left, rather than the limit from the right.\item Issuing \code{POST} requests to the internal web server could stallthe request under certain circumstances.\item \code{gzcon( <textConnection> )}, an error, no longerdamages the connection (in a way to have itsegfault). (\PR{14237})\item All the results from \code{hist()} now use the nominal\code{breaks} not those adjusted by the numeric \sQuote{fuzz}:in recent versions the nominal \code{breaks} were reported butthe 'density' referred to the intervals used in the calculation-- which mattered very slightly for one of the extreme bins.(Based on a report by Martin Becker.)\item If \code{xy[z].coords} (used internally by many graphicsfunctions) are given a list as \code{x}, they now check thatthe list has suitable names and give a more informative errormessage. (\PR{13936})}}}\section{CHANGES IN R VERSION 2.10.1 patched}{\subsection{NEW FEATURES}{\itemize{\item The handling of line textures in the \code{postscript()} and\code{pdf()} devices was set up for round end caps (the only typewhich existed at the time): it has now been adjusted for buttendcaps.\item \code{lchoose(a, k)} is now defined as\code{log(abs(choose(a,k)))}, analogously to \code{lfactorial()}.\item Although \code{\\eqn\{\}} in Rd files is defined as a\sQuote{verbatim} macro, many packages expected \code{\\dots} and\code{\\ldots} to be interpreted there (as was the case in \R <2.10.0), so this is now done (using an ellipsis in HTMLrendering).\item Escaping of braces in quoted strings in \R-code sections ofRd files is allowed again. This had been changed for the new Rdformat in \R 2.10.0 but was only documented on the developer siteand was handled inconsistently by the converters: text andexample conversion removed the escapes but HTML conversion didnot.\item The PCRE library has been updated to version 8.01, a bug-fixrelease.\item \code{tools::readNEWS()} now accepts a digit as the firstcharacter of a news section.}}\subsection{BUG FIXES}{\itemize{\item Using \code{read.table(header=TRUE)} on a header with anembedded new line would copy part of the header into the data.(\PR{14103})\item \code{qpois(p = 1, lambda = 0)} now gives 0 as for all other\code{p}. (\PR{14135})\item Functions related to string comparison(e.g. \code{unique()}, \code{match()}) could cause crashes whenused with strings not in the native encoding, e.g. UTF-8 stringson Windows. (\PR{14114} and \PR{14125})\item \code{x[ , drop=TRUE]} dropped an \code{NA} level even if itwas in use.\item The dynamic HTML help system reported the wrong MIME typefor the style sheet.\item \code{tools::codoc()} (used by \command{R CMD check}) wasmissing cases where the function had no arguments but wasdocumented to have some.\item Help links containing special characters (e.g. \code{"?"})were not generated correctly when rendered inHTML. (\PR{14155})\item \code{lchoose(a, k)} no longer wrongly gives \code{NaN} fornegative \code{a}.\item \code{ks.test()} could give a p-value that was off by oneobservation due to rounding error. (\PR{14145})\item \code{readBin()}/\code{readChar()} when reading millions ofcharacter strings in a single call used excessive amounts ofmemory (which also slowed them down).\item \command{R CMD SHLIB} could fail if used with paths thatwere not alphanumeric, e.g. contained \code{+}. (\PR{14168})\item \code{sprintf()} was not re-entrant, which potentiallycaused problems if an \code{as.character()} method called it.\item The \code{quartz()} device did not restore the clippingregion when filling the background for a new page. This could beobserved in multi-page bitmap output as stale outer regions ofthe plot.\item \code{p.adjust(method, n)} now works correctly for therare case \code{n > length(p)}, also when method differs from\code{"bonferroni"} or \code{"none"}, thanks to a patch fromGordon Smyth.\item \code{tools::showNonASCII()} failed to detect non-ASCII charactersif \code{iconv()} (incorrectly) converted them to different ASCIIcharacters. (Seen on Windows only.)\item \code{tcrossprod()} wrongly failed in some cases when one of thearguments was a vector and the other a matrix.\item \code{[cr]bind(..., deparse.level=2)} was not always givingnames when documented to do so. (Discovered whilst investigating\PR{14189}.)\item \code{match(incomparables=<non-NULL>)} could in rare casesinfinite-loop.\item \code{poisson.test()} needed to pass argument\code{conf.level} to \code{binom.test()}. (\PR{14195})\item The \code{"nls"} method for \code{df.residual()} gaveincorrect results for models fitted with \code{na.action =na.exclude}. (\PR{14194})\item A change to \code{options(scipen=)} was only implementedwhen printing next occurred, even though it should have affectedintervening calls to \code{axis()}, \code{contour()} and\code{filledcontour()}.\item \code{prettyNum(drop0trailing=TRUE)} did not handle signs ofimaginary parts of complex numbers correctly (and this was usedby \code{str()}: \PR{14201}).\item \code{system.time()} had the \code{sys.child} componentwrong (copied \code{user.child} instead) on systems with\code{HAVE_GETRUSAGE}.(\PR{14210})\item Changing both line texture and line cap (end) resulted in thelatter to be omitted form the PDF code. In addition, line cap(end) and join are now set explicitly in PDF output to ensurecorrect defaults.\item The suppression of auto-rotation in \code{bitmap()} and\code{dev2bitmap()} with the \code{"pdfwrite"} device was notworking correctly.\item \code{plot(ecdf(), log="x")} no longer gives an incorrectwarning.\item \code{read.fwf()} works again when argument \code{file} isa connection.\item Startup files will now be found if their paths exceed 255bytes. (\PR{14228})\item \code{contrasts<-} (in the \pkg{stats} package) no longer has anundeclared dependence on \pkg{methods} (introduced in 2.10.0).}}}\section{CHANGES IN R VERSION 2.10.1}{\subsection{NEW FEATURES}{\itemize{\item The PCRE library has been updated to version 8.00.\item \command{R CMD INSTALL} has new options \option{--no-R},\option{--no-libs}, \option{--no-data}, \option{--no-help},\option{--no-demo}, \option{--no-exec}, and \option{--no-inst} tosuppress installation of the specified part of the package.These are intended for special purposes (e.g. building a databaseof help pages without fully installing all packages).\item The documented line-length limit of 4095 bytes when readingfrom the console now also applies also to \code{parse(file="")}(which previously had a limit of around 1024 bytes).\item A Bioconductor mirror can be set for use by\code{setRepositories()} \emph{via} the option \code{"BioC_mirror"},e.g. the European mirror can be selected by\code{options(BioC_mirror="http://bioconductor.statistik.tu-dortmund.de")}.\item Double-clicking in a \code{tk_select.list()} list box nowselects the item and closes the list box (as happens on theWindows \code{select.list()} widget).}}\subsection{INSTALLATION}{\itemize{\item \command{configure} will be able to find a usable\code{libtiff} in some rare circumstances where it did notpreviously (where \code{libtiff} needed to be linked explicitly against\code{-ljpeg}).\item Making \code{refman.pdf} works around a problem with the indexingwith \code{hyperref 6.79d} and later.}}\subsection{DEPRECATED & DEFUNCT}{\itemize{\item The \code{extended} argument is deprecated in\code{strsplit()}, \code{grep()}, \code{grepl()}, \code{sub()},\code{gsub()}, \code{regexpr()} and \code{gregexpr()} (not justthe value \code{extended = FALSE}) and will be removed in \R2.11.0.}}\subsection{BUG FIXES}{\itemize{\item \code{trigamma(x)} and other \code{psigamma(x, n)} callsare now accurate for very large \code{abs(x)}. (\PR{14020})\item \code{[g]sub(perl=FALSE, fixed=FALSE)} could use excessivestack space when used with a very long vector containing somenon-ASCII strings.\item The default method of \code{weighted.mean(na.rm = TRUE)}did not omit weights for \code{NA} observations in 2.10.0.(\PR{14032})\item \code{[g]regexpr(pattern, fixed = TRUE)} returned matchpositions in bytes (not characters) in an MBCS locale if\code{pattern} was a single byte.\code{[g]sub(fixed = TRUE)} with a single-byte pattern couldconceivably have matched part of a multibyte character in anon-UTF-8 MBCS.\item \code{findLineNum()} and \code{setBreakpoint()} wouldsometimes fail if the specified file was not in the currentdirectory.\item Package \pkg{tcltk}'s \code{demo(tkdensity)} was broken in2.9.0 when \code{demo()} was changed to set \code{par(ask = TRUE)}.\item \code{gsub()} with backrefs could fail on extremely long strings(hundreds of thousands of characters) due to integer overflowin a length calculation.\item \code{abline(untf=TRUE)} now uses a better x-grid inlog-scale, e.g., for \code{plot(c(1,300), c(1,300), log="xy");abline(4,1, untf=TRUE)}.\item \code{detach()}/\code{unloadNamespace()} arrange to flushthe package's lazyload cache of \R objects once thepackage/namespace is no longer needed.\item There have been small fixes to the rendering of help,e.g. \code{\\command} is now rendered verbatim (so e.g. \code{--}is not interpreted, \PR{14045}).Also, there are many small changes to help files where the newconverters were not rendering them in the same way as before.\item \code{available.packages()} would fail when run on arepository with no packages meeting the filtering conditions.(\PR{14042})\item \code{rep(x, times, each = 2)} gave invalid results when the\code{times} argument was a vector longer than \code{x}.Reported by Bill Dunlap.\item An error when \code{unloadNamespace()} attempted to run the\code{.onUnload()} function gave an error in the reportingfunction and so was not reported properly.\item Text help rendering did not handle very long input linesproperly.\item \code{promptMethods()} generated signature documentationimproperly.\item \code{pgamma(x, a, lower.tail=FALSE)} and\code{qgamma(\dots)} are now considerably more accurate in someregions for very small \code{a}. \code{qgamma()} now correctlyreturns \code{0} instead of \code{NaN} in similar extreme cases,and \code{qgamma()} no longer warns in the case of small\code{a}, see (\PR{12324}).\item \code{unname()} now also removes names from a zero length vector.\item Printing results from \code{ls.str()} no longer evaluatesunevaluated calls.\item \code{complete.cases()} failed on a 0-column data frameargument. (Underlies \PR{14066}.)It could return nonsensical results if no input determined thenumber of cases (seen in the no-segfault tests).\item An error in \code{nls()} with a long formula could cause asegfault. (\PR{14059})\item \code{qchisq(p, df, ncp, lower.tail = FALSE)} with\code{ncp >= 80} was inaccurate for small \code{p} (as the help pagesaid): it is now less inaccurate. (In part,\PR{13999}.)For \code{ncp} less than but close to 80, \code{pchisq()} and\code{qchisq()} are more accurate for probablilities very closeto 1 (a series expansion was truncated slightly too early).\code{pchisq(x, df, ncp)} can no longer return values just largerthan one for large values of \code{ncp}.\item \code{intToUtf8()} could fail when asked to produce 10Mb or morestrings, something it was never intended to do: unfortunatelyWindows crashed \R (other OSes reported a lack of resources).(\PR{14068})\item \code{chisq.test()} could fail when given argument\code{x} or \code{y} which deparsed to more than one line.(Reported by Laurent Gauthier.)\item S4 methods are uncached whenever the namespace containingthem is unloaded (by \code{unloadNamespace()} as well as by\code{detach(unload = TRUE))}.\item The internal record-keeping by\code{dyn.load}/\code{dyn.unload} was incomplete, which couldcrash \R if a DLL that registered \code{.External} routines hadearlier been unloaded.\item \code{bessel[JY](x, nu)} with \code{nu} a negative integer (asingular case) is now correct, analogously to \code{besselI()},see \PR{13556}.\item \code{tools::file_path_as_absolute()} doubled the fileseparator when applied to a file such as \file{"/vmunix"} or (onWindows) \file{"d:/afile"} in a directory for which\code{getwd()} would return a path with a trailing separator(largely cosmetic, as reasonable file systems handle such a pathcorrectly). (Perhaps what was meant by \PR{14078}.)\item \code{unsplit(drop = TRUE)} applied to a data frame failedto pass \code{drop} to the computation of row names. (\PR{14084})\item The \code{"difftime"} method of \code{mean()} ignored its\code{na.rm} argument.\item \code{tcltk::tk_select.list()} is now more likely to remove thewidget immediately after selection is complete.\item Adding/subtracting a \code{"difftime"} object to/from a\code{"POSIXt"} or \code{"Date"} object works again (it wasbroken by the addition of \code{Ops.difftime}).\item Conversion to latex of an Rd file with no aliases failed.\item \code{wilcox.test(conf.int=TRUE)} has achieved.levelcorrected and, for \code{exact=FALSE}, now returns a\code{estimate} component which does not depend on thealternative used.\item \code{help.search()} failed when the package argument wasspecified. (\PR{14113})\item \code{switch(EXPR = "A")} now returns \code{NULL}, as does\code{switch(1)} (which used to signal an error).}}}\section{CHANGES IN R VERSION 2.10.0}{\subsection{SIGNIFICANT USER-VISIBLE CHANGES}{\itemize{\item Package help is now converted from \code{Rd} by the \R-basedconverters that were first introduced in 2.9.0. This means\itemize{\item Packages that were installed by R-devel after 2009-08-09should not be used with earlier versions of \R, and mostaspects of package help (including the runnable examples)will be missing if they are so used.\item Text, HTML and latex help and examples for packagesinstalled under the new system are converted on-demand fromstored parsed Rd files. (Conversions stored in packagesinstalled under \R < 2.10.0 are used if no parsed Rd filesare found. It is recommended that such packages bere-installed.)}\item HTML help is now generated dynamically using an HTTP serverrunning in the \R process and listening on the loopbackinterface.\itemize{\item Those worried about security implications of sucha server can disable it by setting the environment variable\env{R_DISABLE_HTTPD} to a non-empty value. This disables\code{help.start()} and HTML help (so text help is showninstead).\item The Java/Javascript search engine has been replaced by anHTML interface to \code{help.search()}. \code{help.start()} nolonger has an argument \code{searchEngine} as it is no longerneeded.\item The HTML help can now locate cross-references of the form\code{\\link[pkg]\{foo\}} and \code{\\link[pkg:foo]\{bar\}}where \code{foo} is an alias in the package, rather than thedocumented (basename of a) filename (since the documentationhas been much ignored).}}}\subsection{NEW FEATURES}{\itemize{\item \code{polygon()}, \code{pdf()} and \code{postscript()} nowhave an argument \code{fillOddEven} (default \code{FALSE}),which controls the mode used for polygon fills ofself-intersecting shapes.\item New \code{debugonce()} function; further,\code{getOption("deparse.max.lines")} is now observed whendebugging, from a code suggestion by John Brzustowski.(\PR{13647}/8)\item \code{plot()} methods for \code{"stepfun"} and hence\code{"ecdf"} no longer plot points by default for \code{n >= 1000}.\item \code{[g]sub(perl=TRUE)} now also supports \code{"\\E"}in order to \strong{end} \code{"\\U"} and \code{"\\L"} case changes,thanks to a patch from Bill Dunlap.\item \code{factor()}, \code{levels()<-}, etc, now ensure thatthe resulting factor levels are unique (as was always the impliedintention). Factors with duplicated levels are stillconstructible by low-level means, but are now declared illegal.\item New \code{print()} (S3) method for class \code{"function"},also used for auto-printing. Further, \code{.Primitive}functions now print and auto-print identically. The new methodis based on code suggestions by Romain François.\item The \code{print()} and \code{toLatex()} methods for class\code{"sessionInfo"} now show the locale in a nicer format andhave arguments to suppress locale information.\item In addition to previously only \code{round()}, there areother \code{Math} group (S3) methods for \code{"difftime"},such as \code{floor()}, \code{signif()}, \code{abs()}, etc.\item For completeness, \code{old.packages()} and\code{available.packages()} allow arguments \code{type} to bespecified (you could always specify arguments \code{available}or \code{contriburl}).\item \code{available.packages()} by default only returnsinformation on the latest versions of packages whose versionrequirements are satisfied by the currently running \R.\item \code{tools::write_PACKAGES()} has a new argument\code{latestOnly}, which defaults to \code{TRUE} when only thelatest versions in the repository will be listed in the index.\item \code{getOption()} has a new argument \code{default} thatis returned if the specified option is not set. This simplifiesquerying a value and checking whether it is \code{NULL} or not.\item \code{parse()} now warns if the requested encoding is not supported.\item The \code{"table"} method of \code{as.data.frame()} gains a\code{stringsAsFactors} argument to allow the classifyingfactors to be returned as character vectors rather than thedefault factor type.\item If \code{model.frame.default()} encounters a charactervariable where \code{xlev} indicates a factor, it now convertsthe variable to a factor (with a warning).\item \code{curve()} now returns a list containing the points thatw§ere drawn.\item \code{spineplot()} now accepts \code{axes = FALSE}, forconsistency with other functions called by \code{plot.factor()}.\item The Kendall and Spearman methods of \code{cor.test()} canoptionally use continuity correction when not computing exactp-values. (The Kendall case is the wish of \PR{13691}.)\item \R now keeps track of line numbers during execution for codesourced with \code{options(keep.source = TRUE)}. The sourcereference is displayed by debugging functions such as\code{traceback()}, \code{browser()}, \code{recover()}, and\code{dump.frames()}, and is stored as an attribute on eachelement returned by \code{sys.calls()}.\item More functions now have an implicit (S4) generic definition.\item \code{quantile.default()} now disallows factors (wish of\PR{13631}) and its helpdocuments what numeric-like properties its input need to have towork correctly.\item \code{weighted.mean()} is now generic and has \code{"Date"},\code{"POSIXct"} and \code{"POSIXlt"} methods.\item Naming subscripts (e.g. \code{x[i=1, j=2]}) in\code{data.frame} methods for \code{[} and \code{[[} now gives awarning. (Names are ignored in the default method, but couldhave odd semantics for other methods, and do for the data.frameones.)\item \code{as.data.frame()} has an \code{"aovproj"} method.(Wish of \PR{13505})\item \code{as.character(x)} for numeric \code{x} no longerproduces strings such as \code{"0.30"}, i.e., with trailingzeros. This change also renders levels construction in\code{factor()} more consistent.\item \code{codocClasses()}, which checks consistency of thedocumentation of S4 class slots, now does so in considerably morecases. The documentation of inherited slots (from superclasses)is now optional. This affects \command{R CMD check <pkg>} whenthe package defines S4 classes.\item \code{codoc()} now also checks S4 methods for code/documentationmismatches.\item \code{for()}, \code{while()}, and \code{repeat()} loops nowalways return NULL as their (invisible) value. This change wasneeded to address a reference counting bug without creatingperformance penalties for some common use cases.\item The \code{print()} method for \code{ls.str()} results nowobeys an optional \code{digits} argument.\item The \code{method} argument of \code{glm()} now allowsuser-contributed methods.\item More general \code{reorder.default()} replaces functionality of\code{reorder.factor()} and \code{reorder.character()}.\item The function \code{aspell()} has been added to provide aninterface to the \command{Aspell} spell-checker.\item Filters \code{RdTextFilter()} and \code{SweaveTeXFilter()}have been added to the tools package to provide support for\code{aspell()} or other spell checkers.\item \code{xtabs()} with the new argument \code{sparse = TRUE}now returns a sparse Matrix, using package \pkg{Matrix}.\item \code{contr.sum()} etc gain an argument \code{sparse}which allows sparse matrices to be returned.\code{contrasts()} also gains a \code{sparse} argument which itpasses to the actual contrast function if that has a formalargument \code{sparse}.\code{contrasts(f, .) <- val} now also works when \code{val}is a sparse Matrix. It is planned that \code{model.matrix()}will work with such factors \code{f} in the future.\item \code{readNEWS()} will recognize a UTF-8 byte-order mark(BOM) in the \file{NEWS} file. However, it is safer to use onlyASCII code there because not all editors recognize BOMs.\item New utility function \code{inheritedSlotNames()} for S4class programming.\item \code{tabulate()} now allows NAs to pass through (and be ignored).\item If \code{debug()} is called on an S3 generic function thenall methods are debugged as well.\item Outlier symbols drawn by \code{boxplot()} now obey the\code{outlwd} argument. Reported by Jurgen Kluge.\item \code{svd(x)} and \code{eigen(x)} now behave analogously to\code{qr(x)} in accepting logical matrices \code{x}.\item File \file{NEWS} is now in UTF-8, and has a BOM (ofteninvisible) on the first line, and \command{Emacs} local variablesset for UTF-8 at the end. \code{RShowDoc("NEWS")} should displaythis correctly, given suitable fonts.\item \code{terms.formula(simplify = TRUE)} now does not deparsethe LHS and so preserves non-standard responses such as \code{`a:b`} (requested by Sundar Dorai-Raj).\item New function \code{news()} for building and querying \R orpackage news information.\item \code{z^n} for integer \code{n} and complex \code{z} is moreaccurate now if \code{|n| <= 65536}.\item \code{factor(NULL)} now returns the same as\code{factor(character(0))} instead of an error, and\code{table(NULL)} consequently does analogously.\item \code{as.data.frame.vector()} (and its copies) is slightly fasterby avoiding a copy if there are no names (following asuggestion of Tim Hesterberg).\item \code{writeLines()}, \code{writeBin()} and\code{writeChar()} have a new argument \code{useBytes}. Iffalse, character strings with marked encodings are translated tothe current locale (as before) but if true they are writtenbyte-by-byte.\item \code{iconv()} has a new argument \code{mark} which can beused (by experts) to suppress the declaration of encodings.\item \file{DESCRIPTION} file's \code{LinkingTo} specs are nowrecognized as installation dependencies, and included in packagemanagement computations.\item Standardized \file{DESCRIPTION} file \code{License} specsare now available for package management computations.\item \code{"\\uxxxx"} and \code{"\\Uxxxxxxxx"} escapes can now beparsed to a UTF-8 encoded string even in non-UTF-8 locales (thishas been implemented on Windows since \R 2.7.0). The semanticshave been changed slightly: a string containing such escapes isalways stored in UTF-8 (and hence is suitable for portablyincluding Unicode text in packages).\item New \code{as.raw()} method for \code{"tclObj"} objects (wishof \PR{13758}).\item \code{Rd.sty} now makes a better job of setting email addresses,including using a monospaced font.\item \code{textConnection()} gains an \code{encoding} argumentto determine how input strings with marked encodings will behandled.\item \command{R CMD Rd2pdf} is available as a shortcut for\command{R CMD Rd2dvi --pdf}.\item \command{R CMD check} now checks links where a package isspecified (\code{\\link[pkg]\{file\}} or\code{\\link[pkg:file]\{topic\}}), if the package is available.It notes if the package is not available, as in many cases thisis an error in the link.\item \code{identical()} gains three logical arguments, whichallow for even more differentiation, notably \code{-0} and\code{0}.\item \code{legend()} now can specify the \code{border} color offilled boxes, thanks to a patch from Frederic Schutz.\item Indexing with a vector index to \code{[[ ]]} has now beenextended to all recursive types.\item Pairlists may now be assigned as elements of lists. (Listscould always be created with pairlist elements, but \code{[[<-}didn't support assigning them.)\item The parser now supports C-preprocessor-like \code{#line}directives, so error messages and source references may refer tothe original file rather than an intermediate one.\item New functions \code{findLineNum()} and\code{setBreakpoint()} work with the source references to findthe location of source lines and set breakpoints (using\code{trace()}) at those lines.\item Namespace importing is more careful about warning on maskedgenerics, thanks to a patch by Yohan Chalabi.\item \code{detach()} now has an argument \code{character.only}with the same meaning as for \code{library()} or\code{require()}.\item \code{available.packages()} gains a \code{filters}argument for specifying the filtering operations performed on thepackages found in the repositories. A new built-in\code{"license/FOSS"} filter only retains packages for whichinstallation can proceed solely based on packages which can beverified as Free or Open Source Software (FOSS) employing theavailable license specifications.\item In registering an S3 class by a call to\code{setOldClass()}, the data part (e.g., the object type)required for the class can be included as one of the superclassesin the Classes argument.\item The argument \code{f} to \code{showMethods()} can be anexpression evaluating to a generic function, allowing methods tobe shown for non-exported generics and other nonstandard cases.\item \code{sprintf()} now supports \code{\%o} for octalconversions.\item New function \code{Sys.readlink()} for information about symboliclinks, including if a file is a symbolic link.\item Package \pkg{tools} has new functions\code{checkRdaFiles()} and \code{resaveRdaFiles()} to report onthe format of \file{.rda}/\file{.RData} data files, and tore-save them in a different compressed format, including choosingthe most compact format available.A new \command{INSTALL} option, \option{--resave-data}, makes useof this.\item File \file{~/.R/config} is used in preference to\file{~/.Rconfig}, and these are now documented in \sQuote{RInstallation and Administration}.\item Logic operations with complex numbers now work, as they were alwaysdocumented to, and as in S.\item \code{arrows()} and \code{segments()} allow one of \code{x1}or \code{y1} to be omitted to simplify the specification ofvertical or horizontal lines (suggestion of Tim Hesterberg).\item \code{approxfun()} is faster by avoiding repeated \code{NA}checks (diagnosis and patch by Karline Soetaert & ThomasPetzoldt).\item There are the beginnings of a Nynorsk translation by Karl OveHufthammer.\item \code{stripchart()} allows \code{par} \code{bg} to bepassed in for the background colour for \code{pch = 21} (wish of\PR{13984}).\item New generic function \code{.DollarNames()} to enable class authorsto customize completion after the \code{$} extractor.\item \code{load()}, \code{save()}, \code{dput()} and\code{dump()} now open a not-yet-open connection in theappropriate mode (as other functions using connections directlyalready did).}}\subsection{REGULAR EXPRESSIONS}{\itemize{\item A different regular expression engine is used for basic andextended regexps and is also for approximate matching. This isbased on the TRE library of Ville Laurikari, a modified copy ofwhich is included in the \R sources.This is often faster, especially in a MBCS locale.Some known differences are that it is less tolerant of invalidinputs in MBCS locales, and in its interpretation of undefined(extended) regexps such as \code{"^*"}. Also, the interpretation ofranges such as \code{[W-z]} in caseless matching is no longer to mapthe range to lower case.This engine may in future be used in \sQuote{literal} mode for\code{fixed = TRUE}, and there is a compile-time option in\code{src/main/grep.c} to do so.\item The use of repeated boundary regexps in \code{gsub()} and\code{gregexpr()} as warned about in the help page does not workin this engine (it did in the previous one since 2005).\item Extended (and basic) regexps now support same set of optionsas for \code{fixed = TRUE} and \code{perl = TRUE}, including\code{useBytes} and support for UTF-8-encoded strings innon-UTF-8 locales.\item \code{agrep()} now has full support for MBCS locales with a modestspeed penalty. This enables \code{help.search()} to use approximatematching character-wise rather than byte-wise.\item \code{[g]sub} use a single-pass algorithm instead ofmatching twice and so is usually faster.\item The \code{perl = TRUE} versions now work correctly in anon-UTF-8 MBCS locale, by translating the inputs to UTF-8.\item \code{useBytes = TRUE} now inhibits the translation of inputs withmarked encodings.\item \code{strsplit()} gains a \code{useBytes} argument.\item The algorithm used by \code{strsplit()} has been reorderedto batch by elements of \code{split}: this can be much faster for\code{fixed = FALSE} (as multiple compilation of regexps is avoided).\item The help pages, including \code{?regexp}, have been updatedand should be consulted for details of the new implementations.}}\subsection{HELP & Rd FILE CHANGES}{\itemize{\item A new dynamic HTML help system is used by default, and may becontrolled using \code{tools::startDynamicHelp()}. With this enabled,HTML help pages will be generated on request, resolving linksby searching through the current \code{.libPaths()}. The usermay set options(\code{"help.ports"}) to control which IP port is usedby the server.\item \code{help.start()} no longer sets \code{options(htmlhelp =TRUE)} (it used to on Unix but not on Windows). Nor does it onUnix reset the \code{"browser"} option if given an argument ofthat name.Arguments \code{update} and \code{remote} are now availableon all platforms: the default is \code{update = FALSE} since thehttp server will update the package index at first use.\item \code{help()} has a new argument \code{help_type} (withdefault set by the option of that name) to supersede arguments\code{offline}, \code{htmlhelp} and \code{chmhelp}(although for now they still work if \code{help_type} isunset). There is a new type, \code{"PDF"} to allow offline PDF(rather than PostScript).A function \code{offline_help_helper()} will be used if this existsin the workspace or further down the search path, otherwisethe function of that name in the \pkg{utils} namespace is used.\item Plain text help is now used as the fallback for HTML help (asit always was for Compiled HTML help on Windows).\item It is possible to ask for static HTML pages to be prebuilt\emph{via} the configure option \option{--enable-prebuilt-html}. Thismay be useful for those who wish to make HTML help availableoutside R, e.g. on a local web site.\item An experimental tag \code{\\Sexpr} has been added to Rdfiles, to evaluate expressions at build, install, or render time.Currently install time and render time evaluation are supported.\item Tags \code{\\if}, \code{\\ifelse} and \code{\\out} have beenadded to allow format-specific (or more general, using\code{\\Sexpr}) conditional text in man pages.\item The \code{parse_Rd()} parser has been made more tolerant of codingerrors in Rd files: now all syntax errors are reported aswarnings, and an attempt is made to continue parsing.\item \code{parse_Rd()} now has an argument \code{fragment}(default \code{FALSE}) to accept small fragments of Rd files (sothat \code{\\Sexpr} can output Rd code which is then parsed).\item \code{parse_Rd()} now always converts its input to UTF-8.The \code{Rd2*} rendering functions have a new argument,\code{outputEncoding}, which controls how their output isencoded.\item \code{parse_Rd()} no longer includes the newline as part ofa \code{"\%"}-style comment.\item There have been various bug fixes and code reorganization inthe Rd renderers \code{Rd2HTML}, \code{Rd2latex}, \code{Rd2txt},and \code{Rd2ex}.All example files are now created with either ASCII or UTF-8encoding, and the encoding is only marked in the file if thereis any non-UTF-8 code (previously it was marked if the helpfile had non-ASCII contents, possibly in other sections).\item \code{print.Rd()} now adds necessary escape characters so thatprinting and re-parsing an Rd object should produce anequivalent object.\item \code{parse_Rd()} was incorrectly handling multiple backslashes in\R code strings, converting 4n+3 backslashes to 2n+1 insteadof 2n+2.\item \code{parse_Rd()} now recognizes the \code{\\var} tag withina quoted string in \R-like text.\item \code{parse_Rd()} now treats the argument of\code{\\command} as LaTeX-like, rather than verbatim.}}\subsection{COMPRESSION}{\itemize{\item New function \code{untar()} to list or unpack tar archives,possibly compressed. This uses either an external \command{tar}command or an internal implementation.\item New function \code{tar()} to create (possibly compressed)tar archives.\item New functions \code{memCompress()} and\code{memDecompress()} for in-memory compression anddecompression.\item \code{bzfile()} has a \code{compress} argument to selectthe amount of effort put into compression when writing.\item New function \code{xzfile()} for use with\command{xz}-compressed files. (This can also read filescompressed by some versions of \command{lzma}.)\item \code{gzfile()} looks at the file header and so can now alsoread \command{bzip2}-ed files and \command{xz}-compressed files.\item There are the new options of \code{save(compress = "bzip2")}and \code{"xz"} to use \command{bzip2} or \command{xz}compression (which will be slower, but can give substantiallysmaller files). Argument \code{compression_level} gives finercontrol over the space/time tradeoffs.\code{load()} can read such saves (but only as from this version of \R).\item \command{R CMD INSTALL}/\command{check} and\code{tools::writePACKAGES} accept a wider range of compressedtar archives. Precisely how wide depends on the capabilities ofthe host system's \command{tar} command: they almost alwaysinclude \command{.tar.bz2} archives, and with modern versions of\command{tar} other forms of compression such as \command{lzma}and \command{xz}, and arbitrary extensions.\item \command{R CMD INSTALL} has a new option\option{--data-compress} to control the compression used whenlazy-loading data. New possibilities are\option{--data-compress=bzip2} which will give ca 15\% bettercompression at the expense of slower installation times, and\option{--data-compress=xz}, often giving even better compressionon large datasets at the expense of much longer installationtimes. (The latter is used for the recommended packages: it isparticularly effective for \pkg{survival}.)\item \code{file()} for open = \code{""}, \code{"r"} or\code{"rt"} will automagically detect compressed files (from\command{gzip}, \command{bzip2} or \command{xz}). This meansthat compressed files can be specified by file name (rather than\emph{via} a \code{gzfile()} connection) to \code{read.table()},\code{readlines()}, \code{scan()} and so on.\item \code{data()} can handle compressed text files with extensions\file{.\{txt,tab,csv\}.\{gz,bz2,xz\}} .}}\subsection{DEPRECATED & DEFUNCT}{\itemize{\item \code{png(type="cairo1")} is defunct: the value is no longerrecognized.\item \code{tools::Rd_parse()} is defunct (as this version of \Ruses only Rd version 2).\item Use of file \file{~/.Rconf} (which was deprecated in favourof \file{~/.Rconfig} in 2004) has finally been removed.\item Bundles of packages are deprecated. See \sQuote{Writing RExtensions} for the steps needed to unbundle a bundle.\item \code{help()} arguments \code{offline}, \code{htmlhelp} and\code{chmhelp} are deprecated in favour of \code{help_type}.\item \code{clearNames()} (in package \pkg{stats}) is deprecatedfor \code{unname()}.\item Basic regular expressions (\code{extended = FALSE}) aredeprecated in \code{strsplit}, \code{grep} and friends. There isa precise POSIX standard for them, but it is not what recent REengines implement, and it seems that in almost all cases packageauthors intended \code{fixed = TRUE} when using \code{extended =FALSE}.\item \code{methods::trySilent()} is deprecated in favour of\code{try(silent=TRUE)} or -- more efficiently and flexibly --something like \code{tryCatch(error = function(e) e)}.\item \code{index.search()} is deprecated: there are no longerdirectories of types other than \code{help}.}}\subsection{INSTALLATION}{\itemize{\item cairo >= 1.2 is now required (1.2.0 was released in July 2006)for cairo-based graphics devices (which remain optional).\item A suitable \code{iconv()} is now required: support forconfigure option \option{--without-iconv} has been withdrawn (itwas deprecated in \R 2.5.0).\item Perl is no longer \sQuote{essential}. \R can be builtwithout it, but scripts \command{R CMD build}, \command{check},\command{Rprof} and \command{Sd2d} currently require it.\item A system \command{glob} function is now essential (a working\code{Sys.glob()} has been assumed since \R 2.9.0 at least).\item C99 support for MBCS is now required, and configure option\option{--disable-mbcs} has been withdrawn.\item Having a version of \command{tar} capable of automagicallydetecting compressed archives is useful for\code{utils::untar()}, and so \command{gtar} (a common name forGNU \command{tar}) is preferred to \command{tar}: set environmentvariable \env{TAR} to specify a particular \command{tar} command.}}\subsection{INTERNATIONALIZATION}{\itemize{\item There is some makefile support for adding/updating translationsin packages: see \code{po/README} and \sQuote{Writing R Extensions}.There is support for the use of \code{dngettext} for C-leveltranslations in packages: see \sQuote{Writing R Extensions}.}}\subsection{BUG FIXES}{\itemize{\item Assigning an extra 0-length column to a data frame by\code{DF[, "foo"] <- value} now works in most cases (by fillingwith \code{NA}s) or fails. (It used to give a corrupt dataframe.)\item \code{validObject()} avoids an error during evaluation in the caseof various incorrect slot definitions.\item \code{n:m} now returns a result of type \code{"integer"} ina few more boundary cases.\item The \code{zap.ind} argument to \code{printCoefmat()} didnot usually work as other code attempted to ensure that non-zerovalues had a non-zero representation.\item \code{printCoefmat()} formatted groups of columns together,not just the \code{cs.ind} group but also the \code{zap.ind}group and a residual group. It now formats all columns exceptthe \code{cs.ind} group separately (and zaps the \code{zap.ind}group column-by-column). The main effect will be see in theoutput from \code{print.anova()}, as this grouped SS-like columnsin the \code{zap.ind} group.\item \code{R_ReplDLLinit()} initializes the top-level jump sothat some embedded applications on Windows no longer crash onerror.\item \code{identical()} failed to take the encoding of characterstrings into account, so identical byte patterns are notnecessarily identical strings, and similarly Latin-1 and UTF-8versions of the same string differ in byte pattern.\item \code{methods(f)} used to warn unnecessarily for an S4generic \code{f} which had been created based on an existing S3generic.\item The check for consistent ordering of superclasses was notignoring all conditional relations (the symptom was usuallyspurious warnings for classes extending \code{"array"}).\item Trying to assign into a raw vector with an index vectorcontaining \code{NA}s could cause a segfault. Reported by HervéPagès.\item \command{Rscript} could segfault if (by user error) itsfilename argument was missing. Reported by Martin Morgan.\item \code{getAnywhere()} (and functions that use it, including argumentcompletion in the console) did not handle special built-infunctions. Reported by Romain Francois.\item \code{order()} was missing a \code{PROTECT()} call and socould segfault when called on character data under certain (rare)circumstances involving marked non-native encodings.\item \code{prettyNum(z, drop0trailing=TRUE)} did not workcorrectly when \code{z} was a complex vector. Consequently,\code{str(z, \dots)} also did not. (\PR{13985})\item \command{make distclean} removed too many files in\code{etc/} if builddir = srcdir.\item \command{R CMD} replaced \code{TEXINPUTS} rather thanappending to it (as documented and intended).\item \code{help.start()} no longer fails on unix when\code{"browser"} is a function.\item \code{pbeta(x, ..., log.p = TRUE)} is sometimes more accurate,e.g., for very small \code{x}.\item Unserializing a pre-2.8 workspace containing pure ASCIIcharacter objects with a Latin-1 or UTF-8 encoding would corruptthe \code{CHARSXP} cache.}}}