Rev 9615 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
Windows-specific changes to R=============================See the file NEWS for changes that affect all versions of R.rw1020======There is a new menu item `Load History' on the File menu of the console.The menu items Load/Save Image are now called Load/Save Workspace.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).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).The history is only saved when the workspace is, to be compatible withother versions of R, and whether it is restored is controlled byoption --no-restore-history (implied by --no-restore and --vanilla).There are some extra command-line editing commands: see theHelp | Console information screen.Rterm in interactive use sets the title of the window it is runningin, and unsets it when it terminates.make check no longer makes R, just runs the tests (as make testalways has).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 you can useRcmd Rd2dvi.sh [options] filesRcmd Rd2txt fileRcmd Rdconv [options] fileRcmd Rdindex [options] filesRcmd Sd2Rd [options] fileThere are new utilities (in rw1020sp.zip) INSTALL, REMOVE, SHLIB whichcan be used to install a source package, remove a package and make aDLL, and much closer versions of the Unix R utilities build and check.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)Use option --help with any of these for fuller details.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.Other versions of Tcl/Tk may be used by setting TCL_VERSION inMkRules (but only 8.31 has been tested).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.)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.