Rev 80166 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
Windows-specific changes to R=============================For changes since the release of R 2.0.0 on 4 Oct 2004 see the filesCHANGES.rw2000======The miniR distribution no longer included compiled HTML help (to stopit needing 10 floppies rather than 7).Added Rgui script editor by Chris Jackson. Supports object namein window caption in edit() and fix().Changed preferences menu button "Finish" to "OK".Changed search order for user home directory to use "My Documents"directory after HOME and before HOMEDRIVE/HOMEPATH.Added functions setWindowTitle(), getWindowTitle(), andgetIdentification().Added function getWindowsHandle().The windows() device has a new 'bg' argument to set the backgroundcolour (which still defaults to "transparent").The C headers files are now installed into R_HOME/include rather thanR_HOME/src/include (as on Unix).choose.files() now expands '~' to the user's home directory, asmost other file system functions do.(For those building R:) The Makefile now aborts if sub-makes in any ofseveral for-loops fail.R BATCH|SHLIB|INSTALL|REMOVE no longer work: use Rcmd or R CMD (asrequired under Unix) instead.Rcmd INSTALL now does a `safe installation': it moves away anyexisting installation of the packages, and moves them back if itfails. In any case, a failed installation is removed. Bundles areprocessed differently, by combining the DESCRIPTION and DESCRIPTION.infiles and processing each package separately. Installation of abundle now fails as soon as installing any component package fails.It is possible to install the current directory by `Rcmd INSTALL .' .winMenuAdd() and winMenuAddItem() now allow addition of menu items tothe console and graphics windows and their popup menus. Repeatedaddition of the same menu no longer leads to duplicate menus.winMenuDel() now deletes all submenus and items within the menu.Building a complete distribution has an extra step, as the gridvignettes depend on lattice (and so were incomplete in R 1.9.x on bothUnix and Windows).The manual way of building packages is now deprecated, and it is nolonger possible to use it to build bundles (which was never documented).Cross-building of packages is now done by the XINSTALL script.bringToTop() in MDI mode now brings the whole MDI frame to the topbefore raising the chosen window within it.There is a new utility to check the installation (not miniR.exe).Open a Command Prompt/MS-DOS window, cd to the top of the installation(where the READMEs are) and runbin\md5check MD5Any changed or missing files will be reported. You can alsodouble-click to run the file -- it will open a window which will stayopen if there are any errors and close quickly otherwise.The `Manuals' menu item in RGui is renamed to `Manuals (in PDF)', andis now greyed out if no manuals are present (which GraphApp was notdoing correctly).There is a new component in the main installer for the sources of thehelp pages (the man subdirectories of the libraries) -- these werenot installed under Windows before.The RGui menu item for installing packages from CRAN make uses of the(non-default) setting of install.packages(dependencies = TRUE) to fetchall the other packages needed to run those specified.Improvements to file("clipboard") connections -- see ?file plus somemore warnings e.g. if the clipboard becomes full.Memory leaks were fixed in rproxy.dll (used in (D)COM). A breakto the debugger during rproxy.dll startup may be triggered by settingthe DEBUG_RPROXY environment variable.rw1091======Installing a package with a saved image was not exiting on an errormaking the image (PR#6769).Installing a package which failed did not return an error code fromRcmd INSTALL (PR#6768).choose.files(multi=FALSE) was liable to give incorrect results (PR#6818).Workaround for bug in Microsoft critical update KB835732: if HOMEPATHenvironment variable is not set properly, R would not start (PR#6802).Under ESS, Rterm could freeze when quitting (PR#6812).The file.show() internal code failed to close its FindFirst handle andso the directory on which it was used (often the R temporarydirectory) could not be deleted from within R.If a graphics window is opened in a minimized MDI session, it nowuses the physical monitor size instead of the zero-sized MDI frame.Using PgUp whilst recording after a multiple of 4 plots failed to savethe current plot. (PR#3663 revisited.)It is now possible to install a package with a man file called (INTRO).Rd.rw1090======Both Rterm and Rgui now give usage information via the --help or -hcommand-line flag.There is now a "Misc|Break to debugger" menu option, enabledwhen a debugger is detected (somewhat fallibly), or infallibly by the"--debug" command line option. This will cause a trap to an externaldebugger, e.g. for running Rgui under gdb. If the menu item isselected when not running under a debugger R is likely to crash.If the "--debug" option is used, R will break to the debugger duringcommand line processing, allowing the startup process to be debugged.Added "stay" argument to bringToTop(), to allow the user to specifythat a window should stay on top of other windows. Also added "stayon top" item to the popup menus. All of these require R to be runningin SDI mode ("Rgui --sdi" or via the settings in file `Rconsole').Changed windows() so that new windows fit within the MDI clientarea.Added winMenuNames() and winMenuItems() functions to query user menus.Added menu items for www.r-project.org and CRAN on the help menu.(Wishlist PR#6492)Added "R" command to be similar to Unix invocation of scripts, e.g."R CMD INSTALL" is the same as "Rcmd INSTALL". Rcmd still exists forbackwards compatibility (and to avoid conflicts over the name `R').All of R, R CMD and Rcmd now accept --help.Rcmd Rd2dvi can now be specified as such rather than as Rcmd Rd2dvi.sh.Added "Paste commands only" to edit and popup menus in the Rgui console.This allows copying of a block of output, but pasting only the commandsback to the console for re-execution. (Code contributed by Tony Plate.)Installation------------Parallel make (make -j2, say) can be used, but only usefully ondual-processor (or perhaps hyperthreaded) hosts with at least 384Mb ofmemory.Installing now sorts in the C locale to ensure that a consistent sortorder is used. (Some aspects of sorting used to be done in the localeof the host machine, but Perl and the cygwin-based tools used theASCII collation order.)The long-untested support for making Windows .hlp files has been withdrawn.There is support for using K. Goto's fast BLAS. On a 2.6Ghz P4 with1Gb RAM and A a 1000 x 1000 matrix we had the following timingsR BLAS ATLAS GotoA %*% A 3.7 0.65 0.56svd(A) 16.2 7.77 6.83Note that using a fast BLAS is much less effective for smallermatrices as are more common in statistical applications.Faster assembler code for exponentiation is used.Cross-building of R itself now works again. (It had been broken since1.8.0.)Building/installing packages----------------------------R CMD INSTALL/build/check map path names with spaces in to their shortforms.R CMD INSTALL now supports versioned install via --with-package-versions.Installing (binary) package bundles now checks the MD5 sums andreports success, just as for packages.Added "* DONE" to the end of INSTALL logs so --install option to CHECKwill work. (This is a repository maintainer option; seesrc/scripts/check.in for docs).Internal changes----------------The fast bmp/png/jpeg code introduced in R 1.8.0 is used even for256-color displays (as we have now been able to test it on such).Until R 4.2, R's internal malloc etc were remapped to Rm_malloc etc and(only) used in allocating memory for R objects, the Wilcoxon tests and a fewother memory-intensive applications.Improved malloc routines from the current version of Doug Lea's malloc(as suggested by David Teller) have enabled large memory areas to beused more effectively, in particular those over 2Gb where OS supportwere enabled.The initially requested memory is no longer reserved, but as that andtoday's malloc is able to work with non-contiguous memory chunks that shouldnot matter.The installer uses LZMA compression, so Inno Setup >= 4.1.5 is required.Version 1.2.5 of libpng is now used in binary builds.Bug fixes---------Fixed list.files() to properly handle paths like "C:", etc.Fixed unlink() to accept empty file list for Unix consistency.Fixed handling of whitespace in Rd2dvi.sh processing of DESCRIPTIONfiles.Fixed handling of "--max-mem-size" syntax error on command line.In RGui, ^T would not transpose the first and second characters on aline. (PR#5593)Fixed junk character at start of a pipe(). (PR#5053)R CMD SHLIB was computing dependencies for all C files, not just thosespecified on the command line, and building the DLL from all *.o filesin the directory.The sizes of metafiles in pixels were often coming out one pixel morethan requested, so the background was not quite all painted. Now weover-estimate.Rproxy.dll would cause a crash when transferring large amounts of data.Workaround for Microsoft's esoteric idea that date-times in 1970 before1970-01-01 00:00:00 GMT are invalid, so as.POSIXct("1970-01-0100:00:00") failed in timezones ahead of GMT.Avoid possible segfault with browseURL() on urls of more than 264 chars(although these are not guaranteed to work).rw1081======Files in inst/ are installed later in the process of installing apackage (at the request of Ray Brownrigg: the build process was asdocumented in `Writing R Extensions'). CVS files will not be installed.The fast bmp/png/jpeg code introduced in R 1.8.0 is used for savingfrom menus (and savePlot()) as well as for the devices.Lines drawn at the extreme top or right of the device region (e.g. bybox(which="outer")) might have been drawn one pixel too far from theorigin and so perhaps clipped.In 1.8.0 only, the bottom line of pixels was not copied to the filefor png/jpeg/bmp device plots (as the Windows GDI function used wasincorrectly documented).File src/nmath/dnt.c was not being built for the standalone Rmath library.packageStatus() now works under Windows.Fixed instability under some Windows versions associated withdouble buffering of the windows() device. (PR#5173)rw1080======The initial size and position of the MDI frame can be set in Rconsole:see the comments in .../etc/Rconsole. The initial position of theconsole window and graphics windows can be set in Rconsole and in theGUI Preferences editor.The windows() graphics device now has arguments xpos and ypos to setthe initial position, overriding the settings in Rconsole.The windows() device has a form of double-buffering: the visible plotis updated only when there has been no plotting for 0.1sec or if theplot has not been updated for 0.5sec. This is optional (but on bydefault) and the timings can be changed: see ?windows.The bmp/png/jpeg devices are around 10x faster when used on >8-bitdisplays (but use more memory than before).Rterm reverts to sending warning/error messages to stdout on Windows95/98/ME.Rcmd BATCH is now handled in C, and works again on Windows 95/98/ME.Rcmd now sets the TEXINPUTS environment variable so that LaTeXmacros in share/texmf are available via e.g. "Rcmd latex.exe mydoc".Calling dev.off() (or ending a session) when a windows() device isopen and recording plots automatically saves the current plot as thelast saved plot.The windows (etc) devices use the Windows character metrics, which atleast on some systems have non-zero height and depth for space. Thisis now overridden. (This showed up in the baseline placing forplotmath expressions containing a space.)A package's DLL used to be built only if standard source files wereseen. Now src/Makefile.win is run if present, and if that generatessrc/$(DLLNAME).dll the DLL is installed. (DLLNAME is the package nameunless overridden.)doc/manual/Makefile.win now has targets for fullrefman.{dvi,pdf}.Added "Help | Search help..." menu item to Rgui as a front end tohelp.search().Bug fixes---------The changes to versioned install had ensured that the currentlyinstalled copy of a package had its MD5 sums checked, not the versionwaiting to be installed. Now the correct version is checked.The Copy, Paste, Copy&Paste and Kill buttons in the MDI mode failed torestore focus to the console (see rw1070 RGui changes).The BioConductor people had stolen the menu item for "Installpackage(s) from CRAN..." so it was not being enabled/disabledproperly.The windows() device was not plotting transparent single lines correctly.The scrollbars on the data editor work better for very large matrices,and correctly for more than 65535 columns.The search for a directory for temporary files now checks that TMP andTEMP point to actual writable directories.PKG_FFLAGS is now used if provided.bringToTop() tested against the wrong limit for the device list and sowould sometimes not work for high-numbered devices if lower-numbereddevices had been closed.getwd() returns paths separated by / not \.rproxy fixed so LAPACK gets loaded properly by (D)COM server.Fixed installer so share/texmf files are installed with developer option.(Sweave.sty continues to be installed in main option.)Fixed MakePkg so that Rd files with missing line ends at EOF are corrected.rw1071======The system() function printed a spurious warning when the input argumentwas used.The File|Change Dir...|Browse dialog could cause R to crash.Fixed a bug in versioned install of binary package bundles.Help for max.col was not being found in CHTML help: we have worked arounda bug in HHW.The maximum allowed `pointsize' for a windows() device has beenincreased to 48: some people have much bigger screens these days.Rcmd BATCH in rw1070 incorrectly required the R::Utils Perl module.The data editor no longer takes almost all the CPU cycles when running.Fixed a bug in the data editor display that sometimes led to R failingto shutdown.Added some conditional compilation directives to the source so that thereplacement malloc() (see INSTALL) need not be used.Changed the installer build code so that patch versions are namedrwXXXXpat.exe, development versions are named rwXXXXdev.exe, andbeta versions are named rwXXXXbeta.exe.Fixed bugs that caused crash when windows were resized repeatedly.(PR#1711)Changed help to use the 'title' parameter of file.show when displayinghelp, for consistency with Unix versions.Default in installer changed so a normal user installation willinclude the source package installation files.Moved the Sweave style file to the main install group.rw1070======This version of R needs more memory and is slower to start up, becauseit loads more packages by default. This is only likely to be aconcern on machines with 16Mb of memory or less than 300MHzprocessors. For such machines append R_DEFAULT_PACKAGES=ctest to thecommand line in the shortcut used to run R, when the memory usage willbe about equal to that of rw1062.There is a new option to use file("clipboard") to read from or writeto the clipboard. As most input/output functions in R use file(),this makes it possible to read data from or write data to theclipboard in many ways, including direct use of read/writeClipboard().When using download.file() with the internal method and a proxy, theuser/password combination can be set to prompt the user with ausername/password dialog box, and this will be presented on proxyauthentication failure.New function choose.files() for interactive multiple file selection.The output from formatC() uses e+/-0n not e+/-00n for compatibility withother platforms and with format().A site-wide environment file R_HOME/etc/Renviron.site (or as set bythe `R_ENVIRON' environment variable) is now implemented on Windows.The variable .SavedPlots in which plots are stored has been moved frompackage:base to the user's workspace.The warnings about changing the floating point control word are nowoptional, selected by options(warn.FPU = TRUE).The main thread is suspended briefly after Rprof() is called. Thisensures that the timing thread gets started: on some builds and onsingle-CPU machines this was not happening in 1.6.x (although itdid in 1.5.x, so it must be a compiler/runtime version issue).Installation changes--------------------The installers have new options under `Additional tasks' which allowthe creation of Windows Registry entries to be de-selected by the user.Rcmd.exe and Rprof have been moved to the main distribution (althoughto use them you will need perl installed).Tcl/Tk 8.4.1 is bundled in rw1070.exe. You can still use your owninstallation of Tcl/Tk: see the rw-FAQ.The Makefiles that build the installers have been reorganized--seethe Maintainers.notes file for details, and INSTALL for new buildinstructions.HTML help changes-----------------The format of packages.html has changed, with packages listed bylibrary tree (as happens on Unix) when there is more than one tree.The Java-based search index now covers all packages in all currentlibrary trees.When using help.start() with more than one library tree, an attempt ismade to correct the URLs in non-standard libraries which point to theR_HOME/doc directory or to the base package. Once this is done astamp `fixedHTMLlinks' is placed in the package directory, andcorrection will only be done again if the R installation directoryis changed.RGui changes------------The `Display file' menu item is now `Display file(s)' and allowsmultiple file selection.`Install packages from local zip files' from the `Packages' menu cannow install several files at once (by selecting multiple files in thefile selector).Removed some calls to reset the size of the console, so it willstay maximized throughout window operations.The internal pager will page down with space or CTRL-F and page upwith minus or CTRL-B (key sequences which are widely used in Unixpagers). CTRL-A selects all the text.The Change Directory dialog now starts in the current directory, notalways at the desktop.RTerm changes-------------Rterm is now only regarded as interactive if both stdin and stdout area terminal: this overcomes a problem with getline.System error messages (those which would appear in a dialog box inRgui) are written on stderr rather than stdout, as are R warnings anderror mesages. If you want to capture errors as well as normal output, usesomething like...\rterm --vanilla <foo.in >foo.out 2>&1Installing packages-------------------Binary packages are retrieved from the bin/windows/contrib/1.7directory on CRAN, so each new version will have its own set ofcompatible packages. The zip file names now include the versionnumber, as in mda_0.2-16.zip.Files in the top-level directory of a source package are no longerinstalled automatically: files to be installed must be put in an `inst'sub-directory (as has long been recommended). (The `demo' and `exec'directories are also installed, as before.)The BLAS library Rblas.dll is no longer automatically linked againstwhen building a package: as on Unix PKG_LIBS=$(BLAS_LIBS) is requiredin Makevars(.win).MD5 checksums are created on installation from sources (see?checkMD5sums in package tools), and checked on installation byinstall.packages(). If you see mismatches, this may be because filesare left over from an earlier install of the package: try deleting thewhole package directory and re-installing.There is a new command-line flag --auto-zip to Rcmd INSTALL whichselects whether to zip up the data and/or help directories dependingon their size. This is mainly for use with Rcmd INSTALL --build toinstall and zip-up packages.rw1062======New functions read/writeClipboard() to read from or write to the clipboard.Hitting the key q (or Q) with an internal pager window in focus willclose the pager.Source packages with a DESCRIPTION file with an incomplete last lineare now repaired.Rcmd INSTALL tries to find canonical paths to make the check fornot installing on top of the source more foolprof.The output when building R or source packages is much quieter.Warnings are printed if a loaded DLL changes the floating pointcontrol word: see ?dyn.load for the details.Changed Windows README to README.rw1062, included standard READMEand RESOURCES file in binary distribution.Printing and copying from the menu of a graphics device now preservethe active graphics device.Fixed a crash that occurred when an attempt was made to view a file inthe pager but the file could not be opened (e.g. because anotherapplication had it opened with exclusive access).rw1061======Changed titles on help windows so topic name shows when minimized.Dependencies were not being generated properly in packages using C++.share/R/firstlib.R was not being included in the binary distribution.rw1060======The installer program name has changed from SetupR.exe to rw1060.exe.The miniR distribution has grown to eight floppies, and the zip filesare no longer distributed on CRAN.The default memory limit has been raised to the smaller of 1Gb and theamount of physical RAM. (See the changes for rw1040 and rw1020 below.)Support for bzip-ed connections has been added to the standard distribution.update.packages() and install.packages() will not try to install a packagethat is in use (with an informative warning).Using HTML help has changed slightly: in particularhelp(htmlhelp=TRUE) makes use of the setting of options("browser").Ctrl-Z in Rgui or Rterm will signal EOF, and so can be used toterminate a read by readLines() or scan(), for example.bmp(), png(), jpeg() and win.metafile() devices can plot multiplepages in separate files.The preferred compiler is gcc-3.1: gcc-2.95.3 can still be used butup-to-date header files are needed.Making packages containing source code automagically makes dependencyinformation for C and C++ code: this is useful when experimenting withpackages, and especially for the packages which ship with R.rw1051======file.rename() (which is by default used when saving workspaces) nowuses Windows API rather than ISO C functions. This works around areported problem with Windows thinking a file was in use, and onNT/2000/XP machines makes renaming an atomic operation (rather thandelete followed by move).Bulding the standalone Rmath.dll was not making the import librarylibRmath.a.We may have been able to track down (to the isprint routine) the causeof the FAQ Q2.14 about crashes caused by non-ASCII characters, andhence to circumvent it.File | Print on the menu of a windows() graphics device was not working.The binary distribution could not make packages which needed to linkto Rblas.dll.rw1050======There are few new Windows-specific features in this release: it hasbeen tuned to work better with Windows XP and a number of workaroundsadded.win.print() allows a printer to be specified.help.start(browser=) is now supported: this may be useful if thedefault browser does not support the Java-based search engine.Very small circles are now forced to be visible: not all Windowsversions would display them.Transparency in png() is now supported on `High Color' (16-bit) screens.Changing plot resize type via the menu now works better for the currentplot (which is immediately redrawn).BLAS support is now in a separate DLL, Rblas.dll. This means thatpackages using BLAS (KernSmooth, Matrix, bqtl, fracdiff, gss,odesolve, quadprog, quantreg and subselect amongst those on CRAN) needto be re-built. The advantage is that less space is taken up overall,and ATLAS can be used just by rebuilding Rblas.dll.The installers now use bzip2 compression, so make smaller packages.Cross-building automatically uses STAMP=NO for packages.R and packages can now be built in a directory whose path containsspaces (although we still don't recommend it).If a package contains a script `configure.win' it will be run at thestart of installation.Rcmd INSTALL and make pkg-foo test for attempted installation into thesource directory.All the configuration options are now in file MkRules.Unzipping is now handled by internal code based on zlib: unzip.dll isno longer required.Launching HTML files from the menus was not working with Netscape 6.2.x,so a workaround has been provided.Rgui.exe.manifest has been added to get XP-style widgets on Windows XP.Some logical colour names have been changed to get consistent colourschemes on Windows XP.The books in the contents of CHTML for packages were not being sortedcorrectly.The floating-point control setting has been changed to use 64-bitrather than 53-bit mantissas, which will result in slightlydifferent but generally more accurate results.rw1041======Updating HTML indices, e.g. in help.start(), is done within atry() construct.help.start() has a new argument `update'.Making packages now warns if there is a configure script.ga.h was needed for building package `windlgs', but was omitted from the`source package' code for rw1040. It is now included.Rcmd check was failing on Windows 9X, because additions in 1.4.0 werenot using Rsystem().rw1040======If --max-mem-size is given a value greater than 256M, the requestedmaximum memory is reserved (but not allocated) initially. This willenable the memory to be managed more efficiently, but does increasethe chance that R cannot be started. There appears to be an effectivelimit of about 1700M, at least under Windows 2000.memory.limit() can now increase the memory limit of the current session.This will not work if the limit is currently reached!internet2.dll (see changes for rw1030) must be selected by the--internet2 flag.The miniR* distribution has grown to seven floppies, and no attempt isnow made to confine the zip files to floppy-size.The background colour of a windows() window (outside the deviceregion) is now in the `Application Background' colour of the currentWindows colour scheme. (It used to be LightGrey.)Gamma correction is now applied to the background colour of a graphicswindow. (It has long been applied to the foreground colours.) Usersof LCD screens may want to set something like gamma=2 when launching agraphics window.savePlot() now supports saving to PDF.There is support for transparency in the devga device (whichencompasses screen windows, metafiles, printers and the bmp, jpeg andpng devices). The default background colour is "transparent" for allbut the bitmap devices: this means that backgrounds are omitted whenplotting to/saving to most devices, and the colour that is visible isthat of the canvas (see below). The png() device does supporttransparent backgrounds, but this is not accessible through the menusnor the savePlot() function.The canvas colour of a windows() window can now be specified. This isis gamma-corrected, and defaults to "white".There is a print method for saved plot histories, and individualplots can be replayed from the command line by subsetting aplot history variable.The menus use `...' to indicate that they lead to a dialog box.There is a new menu item `Edit | Data editor...' to edit (via fix())R objects, especially data frames and matrices.The console pop-up was checking the wrong item for `Buffered output'.Plot histories are saved in a different format: those from earlierversions of R cannot be played back and will be reported as corrupted.Installing a package now first removes the data and demo directoriesif they exist.Building under (repaired) Cygwin -mno-cygwin environments is no longersupported. You probably do need the compiler system recommended forrw1031 or later.globalvar.h is no longer used: the header files now declare importedvariables. This make it essential to use the R header files ratherthan copying entries from them.A bug in some linkers in linking against ATLAS has been circumvented.There is now a bigger benefit in using ATLAS: on a PII with a1000x1000 matrix, svd took 288 sec and La.svd 182 sec (without ATLAS)and 59 sec (with); eigen took 163 sec and La.eigen 53 sec (without)and 24 sec (with).rw1031======Lines with lty > 1 and many pieces were being drawn very slowly onWindows 2000 (but not 98/ME). To work around this, such lines arenow drawn 5000 pieces at a time.The dialog for the `Change dir' item now uses a standard folderselection widget for its Browse button.White backgrounds are now omitted for metafiles (as they are forpostscript, PDF and XFig plots), so white backgounds (the default)appear to be transparent.help.start() now updates the HTML search index (as well as thepackages index) when it is started up. link.html.help() works betterwhen R_LIBS omits the drive, and uses relative links for the mainlibrary, so R installations can be relocated in the file system.The background colour of the GUI preferences editor and theselect.list() popup is now taken from the Windows colour scheme.Rcmd INSTALL now rejects invalid options for --docs (rather thanignoring them), and checks for the R version in the DESCRIPTION fileexactly the same way as Rcmd check (so with fewer spurious messages).Added support for building with the ATLAS optimized BLAS library: on aPII this speeds up La.svd on a 500x500 matrix by about 30%, and themultiplication of two 1000x1000 matrices by about 8x. See INSTALL.The recommended compiler system has been changed, but that recommendedfor rw1030 still works.rw1030======SetupR.exe and miniR* now include the nine `recommended' packages,so the miniR* distribution needs six floppies rather than four.Rgui has a new menu `Packages' with items to load packages, to installpackages from CRAN or from local zip files, and to update packages.The packages list shown by help.start() now includes all packages inall libraries, but the search index is still confined to the systemlibrary.The installers set up a file association for *.RData files, sodouble-clicking on a *.RData file launches R in that directory andloads the *.RData file. Also, a *.RData file can be dropped onto ashortcut to Rgui (or Rterm) on the desktop or in Windows Explorer.Drag-and-drop of images (.RData and .rda) and source files (.R)onto the Rgui.exe console window is now supported.Profiling (as described in `Writing R Extensions') is now available.There is a new `Save as PDF' option on the graphics device menu.bringToTop() can specify the console window in Rgui (as -1).The default graphics device is now windows() only in interactive use:otherwise it is postscript(). (This affects the DCOM interface, whichis not interactive use.)Support for earlier (pre-Feb 2000) mingw compilers has been dropped:you must use a compiler system that supports --shared and has anin-memory dlltool.Rcmd check has been changed to be more robust to reported problemswith Perl's system() command under 16-bit versions of Windows. It nowworks for us under Windows 98. (It has always worked under NT4 and2000.)Rcmd SHLIB no longer adds a version tab to the DLL, as this seemed tocause some people problems under Windows 95/98/ME.The correct file version information should now appear on Windows 2000Version tab under Properties (working around a Windows 2000 bug).rwinst.exe is no longer part of the distribution: use the newerinstallers to install R, and the Packages menu in Rgui.exe to installpre-compiled packages, or use an external unzip program.The old-style Windows help is no longer part of the standard distribution,but can be made from the sources. It is no longer tested.Make targets such as test-Reg have been moved to directory rw1030\tests.[ DO NOT DO THIS: see ?download.file or rw1040 above:The default internet module modules\internet.dll is built using basicWinSock calls. There is an alternative modules\internet2.dll which usesWinInet calls (and so needs Internet Explorer installed) which can beused as a replacement. (Remove modules\internet.dll and thenrename modules\internet2.dll to modules\internet.dll.)]rw1023======Alternative installers based on Inno Setup 2.0.x, either SetupR.exe orminiR* (which fits on four floppies).The location of R_HOME and the version can optionally be recorded inthe Registry (and will be used by the DCOM interface). The Inno Setupinstallers register the installation, and unregister onuninstallation. rwinst.exe has an option to register. Programrw1023\bin\RSetReg.exe will register, and rw1023\bin\RSetReg.exe /Uwill unregister.The windows() device no longer rounds width and height to the nearest inch.You can override the settings Windows reports for pixels per inch(sometimes it is seriously adrift). See ?windows.File `extract-usage' needed for codoc was missing from rw1022sp.zip.The default memory limit (as reset by --max-mem-size) is set to atleast 16Mb, to allow R to start on machines with 8Mb of RAM.link.html.help() has been re-written using connections and so isseveral times faster.Rcmd INSTALL now allows Windows-style paths to a tar file.rproxy.dll is now built for StatConnector version 0.99: earlier versionsare no longer supported.A Windows-specific bug in bitmap() which caused output to appear twicehas been fixed.Rcmd check now stops when package-specific tests fail (not justreports on the console).rw1022======The long-running saga of importing R metafiles into Word is over;lines are now visible in screen previews in Word. It was necessary touse `geometric' rather than `cosmetic' pens to achieve scalable linewidths in metafiles: Word was failing to show lines drawn with`cosmetic' pens.bringToTop() now works with MDI child windows as well as SDI windows.Rcmd build/check use a different check for a directory, to work arounda bug in (some versions of) Windows Perl.The datetime code has been modified to work around a problem reportedon a Win98 machine which caused times to be reported in GMT. (Thisseems a bug in a particular version of msvcrt.dll and few machineswere affected.) A side-effect of the changes is that the timezonenames reported are usually more sensible (but sometimes less).File etc/Makeconf-tests was missing from rw102Xsp.zip.Rcmd SHLIB now supports compilation from C++ sources.Rterm now saves and resets the console window title.On Win2k, system(intern=TRUE) was failing to reset stderr to the console.rw1021======Pipe connections now work under RGui and embedded R.dll, althoughslower than under Rterm, and as they run with no stdin or stdout toinherit what you can do with them is limited. They work better forreading than writing.The installer will no longer crash trying to install addons with along PATH and R_HOME not set. Similarly, Rcmd accepts long paths.Using Rcmd INSTALL with an incorrect path specification ending in \ nolonger runs amok.Internal pager no longer fails when given a file of one line and noline ending.Hyperlinks to other packages in CHTML files launched by help() willnow work irrespective of the working directory (but like HTML, onlyto packages in the same library). The .chm files do need to bere-built under this version.help(, winhelp=TRUE) will now find alias topics as well as main items.Hitting the total memory allocation limit set by --max-mem-size willgive a warning (and will usually also lead to an error, and that maysuppress printing out the warning).There is a new make target test-Reg to run the regression tests (whichnow do I/0, so might give different results on Windows).Rcmd build with the latest tar.exe will exclude files as intended.There are further improvements in the GUI console receiving output(e.g. from tcltk interactive functions) during input. If you can,arrange to send output in a single piece, or at least a whole line ata time (although partial lines will now work). For example, don't useprint() but capture the output in a text connection and use somethinglike cat(paste(outlines, "", collapse="\n)) to output a single string.The initial rescaling is no longer done for windows(rescale="fixed"),and the scrollbars in that mode are more responsive but move theviewport 20 pixels at a time.rw1020======This version has been compiled against msvcrt.dll not crtdll.dll.This gives small speed increases and generally more accurate results.Packages compiled against crtdll.dll will still work (as far as we areaware), but for best results should be re-compiled. (A few packagesneed to be re-compiled for 1.2.0 on all platforms, and any that usedmalloc directly need to be recompiled on this one.)This release has a number of changes to bring its behaviour closer to thatof Unix versions of R.- The default font for graphics on windows(), win.printer() andwin.metafile() devices is now Arial: the font numbers for theTimes New Roman and Arial families have been interchanged.- The history is only saved when the workspace is (to be compatible withUnix versions of R) and whether it is restored is controlled byoption --no-restore-history (implied by --no-restore and --vanilla):the default remains to restore.- Environment variables R_HISTFILE and R_HISTSIZE can be set to specifythe name of the commands history file (default .Rhistory)and its maximum size (in lines, default 512).- More locale support is now enabled where supported by the version ofWindows in use. It means that sorting and comparison of characterstrings will be locale-specific. You may not want this (the sortorder in `English_United Kingdom' is aAbB..., for example) andsetting Sys.setlocale("LC_COLLATE", "C") should give the previousbehaviour. Further, users of Windows 9x/ME should be able to usetheir native character set for the names of R objects (as NT/2000users always have: this is caused by the change to msvcrt.dll).(For the benefit of those used to Unix, LC_ALL can be set in theenvironment, although this is not usually supported by Windows,and setting individual LC_* such as LC_COLLATE will also work.)- It is possible to make DVI and HTML versions of the manuals:see file INSTALL in the source distribution.- New utility Rcmd.exe to emulate R CMD : see below.- unlink() now works the same way on Windows and Unix. Thus onWindows it no longer deletes empty directories, but has a newargument recursive=TRUE to delete directories (empty or not).- The startup code looks for .Renviron, a file pointed to byenvironment variable R_ENVIRON and then .Renviron in the homedirectory. This file can contain lines of the forms NAME=valueand NAME=${NAME1-value} to take the value of NAME1 if set (and notempty), otherwise `value'.- make check no longer makes R, just runs the tests (as make testalways has). Tests are run in the C locale.Gui changes------------ There are new console menu items `Load History' on the File menu and`Clear console' on the Edit menu. (The current line is not cleared.)- The menu items `Load/Save Image' are now called `Load/Save Workspace'.- The Print menu item on the File menu of a console or pager now printsthe selection if there is one, and the whole (saved) contents otherwise.- There is a new `Save to File' item on the File menu of a console orpager which saves the selection if there is one, and the whole(saved) contents otherwise.- The Rgui console now uses the same history mechanism as Rterm. Thehistory limit is now just on the number of lines (rather than on thenumber of lines and the total size). The mechanism has been alteredso that Rterm records repeated lines (as Rgui always did).- There are some additional command-line editing commands in Rgui: seethe Help | Console information screen. (There is also oneaddition, ^W, in Rterm: see README.rterm.)- Selection works slightly differently: if the selection extends beyondthe last character on the line the (invisible) CRLF is made part ofthe selection, but not if only up to the last character is selected.- The data editor is no longer modal (which seems not to have workedproperly in the GraphApp toolkit) and this allows its popups to bemodal.- The size of the console scroll buffer can be set in file Rconsole,and resized (upwards) via the GUI preferences editor.- The GUI console copes much better with receiving output (e.g. fromtcltk interactive functions) during input.New utilities for preparing packages------------------------------------There are several new utilities in the rw1020sp.zip distribution.The utilities Rd2dvi.sh Rd2txt Rdconv Rdindex Sd2Rd are no longerbatch files but accessed through a new front-end Rcmd.exe, so if thisis in your path (otherwise use ...\rw1020\bin\Rcmd) you can useRcmd Rd2dvi.sh [options] filesRcmd Rd2txt fileRcmd Rdconv [options] fileRcmd Rdindex [options] filesRcmd Sd2Rd [options] fileThere are new utilities INSTALL, REMOVE, SHLIB which can be usedto install a source package, remove a package and make a DLL, andimplementations of the Unix R utilities BATCH, build andcheck. Invoke these byRcmd INSTALL [options] pkgdir(s)Rcmd REMOVE [options] pkg(s)Rcmd SHLIB [options] file(s)Rcmd build [options] pkgdir(s)Rcmd check [options] pkgdir(s)Rcmd BATCH [options] infile [outfile]Use option --help with any of these for fuller details.The default for options("papersize") is set according to the locale,and so might be set to "letter" under US or Canadian versions ofWindows.Rterm in interactive use sets the title of the window it is runningin, and unsets it when it terminates.The Windows memory manager proved to be (far) too slow to work withthe new generational garbage collector, so it has been replaced. Thecurrent memory manager rarely releases memory back to Windows (butreuses memory very efficiently) so total memory usage will often growslowly over the course of a session. Memory used for transient largeobjects will normally be returned at garbage collection. (Once memoryusage has gone over the 256Mb of address space that is initiallyreserved, it is unlikely to be reduced much, but the allocated memorywill be reused.) You can compile R to use the Windows memory managerif you need to.New function memory.size() showing the amount of memory currently inuse or the maximum that has been used.New command-line option --max-mem-size to set the maximum memoryallocation: it has a minimum allowed value of 10M. This is intendedto catch attempts to allocate excessive amounts of memory which maycause other processes to run out of resources. The default is thesmaller of the amount of physical RAM in the machine and 256Mb.DLLs for packages (including standard packages supplied with R)automatically gain version information when compiled under thisversion. (Use the Version tab on the Properties dialog box to see it,or the new function DLL.version() within R.)Windows (.hlp) help files now have hyperlinks to other objects withinthe same package.The windows() graphics device has a new argument `record' to set theinitial state of the recording flag, and this defaults to the settingof the option "graphics.record" (and that defaults to FALSE).The windows() graphics device has new options for what happens when itis resized, which can be set from the command line of from the menu.See ?windows for details.New function bringToTop() to bring a graphics window to the top of thewindows stack (useful from menu actions, ...).If the options setting for a pager or editor (or the editor argumentto edit.default) is a path containing a space, it is automaticallyquoted if not already quoted.The range of allowed text sizes in a windows/win.print device has beenincreased, so smaller values of cex will work. (The smallest allowedtext size is 2pt not 8pt.)Interactive use of Rterm.exe on Windows 2000 systems is now possible(including under ESS).Better rendering of wide (lwd > 1) and dashed (lty != "solid") lineson the windows/win.print device.The installer rwinst.exe when first asked to install a package triesto find a current installation of R, first from R_HOME if set in theenvironment, then from the PATH (it looks for ...\rw1020\bin).make pkgcheck-foo will unzip zipped example files if needed.rw1011======New file README.Rterm providing basic documentation on Rterm.exe.undoc() is now available under Windows.There is a new script R_HOME/bin/build.sh, a version of R CMD build.You will need R_HOME set as an environment variable to use it, and youwill need the full set of tools from tools.zip (see readme.packages)in your path.The batch wrappers to Perl files Rdconv.bat Rdindex.bat Rd2txt.batSd2Rd.bat have been revised to work on more Perl/OS versions.Setting cell widths from the menu in the data editor now works reliably.Having an empty line at the beginning of .Rhistory no longer breaks thehistory-recall mechanism in Rgui.Characters using the AltGr key now work in interactive use of Rterm.(AltGr used to work like Alt.)Ctrl+V now works as described in a pager (pasting to the console).Other versions of Tcl/Tk may be used by setting TCL_VERSION inMkRules (but only 8.31 and 8.32 have been tested).A file Makevars.win in the src directory of a package will be used inpreference to a file Makevars.The Makefiles for packages now allow C++ code (with extension .cc or.cpp or .C) in the src directory.If you use a private library and HTML help, you need to copy R.cssfrom rw1011\library to each private library directory.Function win.version() should give slightly more information (thelatest service pack number x.y) on Windows 2000.rw1010======There is now a GUI preferences editor on the Edit menu in Rgui.A data entry editor is now implemented. This is similar to the Unixone (see ?dataentry: that has itself been considerably enhanced inparallel with the Windows version) with the additional features thatdouble-clicking in a cell turns it into an editable field (entered asa new value by navigating away from the cell), and there is aright-click popup menu.Rterm will now load and save the commands history (as Rgui does).There is a new item on the File menu in Rgui to save the commandshistory at that point in a session, and a new function savehistory()(only applicable in Rgui and Rterm).Colours in Rconsole can be specified as "Windows" and will be takenfrom the current Windows colour scheme. (The preferences editor willsave the actual colour, though.)The placement of multiple pagers is now `random' (so they will notalways appear in the exact centre of the screen) and under the MDIinterface the pager rows and columns settings are now used.The postscript() device can now spool plots to a printer. You willneed a suitable program to send a file to the spooler (or even to sendit to ghostscript to interpret PostScript for the printer): the RedMonsuite available from http://www.cs.wisc.edu/~ghost/rjl.html andGhostScript distribution sites should provide suitable tools. See?postscript for further details.The new xfig() device can be used, and a port of xfig to Windows (withan X server and the Cygwin B20.1 environment and X11R6.4 installed) is atftp.franken.de:/pub/win32/develop/gnuwin32/cygwin/porters/Humblet_Pierre_A/B20as xfig-3.2.2-cygwin-b20.1-bin.tar.gz.The R DLL and executables now contain standard Windows versioninformation, which will appear on a Version tab of the Propertiesdialog box in Explorer.The internal unzip and the installer now use unzip5.41, not unzip5.40, andthe DLL interface is incompatible.There are changes in the tools needed to build R (see the file INSTALL)and those recommended for building packages from source (see the filereadme.packages).New makefile target zipdata-% to zip up data directories in packages.If there is a file `Makefile.win' in a package src directory thiswill be used rather than MakePkgs (and the tcltk package providesan example).There is an example package `windlgs' in the package sourcesdistribution that shows how to use graphapp to build dialog boxes tobe called from menus, with a worked example of a t test done in threeways. More details of graphapp, including a tutorial and a referencemanual, are at http://www.cs.usyd.edu.au/~loki/graphapp.Optional support for the Tcl/Tk interface. To use this you need toinstall tcl831.exe from dev.scriptics.com, and you will need the Tcland Tk dlls in your path. Also, you need to set the environmentvariable TCL_LIBRARY, to something like c:/Program Files/Tcl/lib/tcl8.3.The demos(tk*) will work on Windows.The R mathematical functions can now be built as a DLL for usewith your own C programs. See src/nmath/standalone/README in thesources.Rdconv.bat no longer depends on having a Unix-compatible `cat' programin your path.A long-standing bug in the (vertical) alignment of symbols in plotmathhas been corrected.Pagers should no longer flash when launched.Launching a pager or data editor or graphics window now brings itto the front, even from Rterm.exe. (Not for Tcl/Tk windows, unfortunately.)Failure to load a DLL with dyn.load now gives extended error information.rw1001======The installer, rwinst.exe, now checks for ZIP files as well as zip files,as some browsers manage to map filenames to uppercase.There are batch files Rd2txt.bat Rdconv.bat Rdindex.bat Sd2Rd.batwhich are the equivalent of the Unix `R CMD foo' utilities mentioned in`Writing R Extensions'. To use these you must have R_HOME set as anenvironment variable (using the form P:/R/rw1001). There is also ashell script Rd2dvi.sh which you can use if you have sh.exe (asused to compile packages) and latex etc. The environment variableXDVI sets the previewer, defaulting to xdvi.bat.A file `Makevars' in the `src' directory of a package can be used toadd to/override the MakeDll makefile used to make foo.dll, as on Unix.(See `Creating shared libraries', section 3.4 of `Writing R Extensions'.)Under rare conditions (lots of very short input lines) the history buffercould overrun and so cause crashes. This has been possible since rw0623,but first caused reported problems in rw1000 and has now been fixed.Certain HP printer drivers (e.g. the 6/6MP-Postscript driver) reset theFPU and so were causing crashes. This has been circumvented in thisversion by restoring the settings before and after each page.Building on a non-default drive should be more reliable, as Perl isused to find the current drive.-------------------------------------------------------------------For changes prior to the release of R 1.0.0 on 29 Feb 2000see the file CHANGES0 in the source distribution.