Rev 8390 | Blame | Last modification | View Log | Download | RSS feed
R @RVER@ for Windows===================This distribution contains a binary distribution of R-@RVER@ to run onWindows 95, 98, NT4.0 and 2000 on Intel/clone chips. It is designed to beas close as possible to the implementation on Unix, but see the listof differences below. The port was by Guido Masarotto and Brian Ripley.See the file `CHANGES' for the new features of this version.Installation============The distribution consists of several zip files:@RWVER@b1.zip and @RWVER@b2.zip the base system@RWVER@h.zip text help@RWVER@ch.zip compiled HTML help@RWVER@w.zip HTML help files@RWVER@l.zip latex help for offline help@RWVER@d1.zip PDF manuals except@RWVER@d2.zip PDF version of the reference manual@RWVER@sp.zip files to install from source packagesand optionally the installer rwinst.exe.The simplest way to install is to run the installer (double-click onthe icon for rwinst.exe and navigate its wizard-like pages).To install manually, unpack @RWVER@b1.zip and @RWVER@b2.zip anywhere youlike. It will unpack to a directory tree under @RWVER@. The help,compiled HTML, HTML and latex help files are in separate files@RWVER@h.zip, @RWVER@ch.zip @RWVER@w.zip and @RWVER@l.zip which should beunpacked in the same directory you unpacked @RWVER@b1.zip. Files@RWVER@d1.zip and @RWVER@d2.zip contains PDF versions of the manuals forR, which unpack into @RWVER@/doc/manual.You should install at least one of the text help and the compiled HTML help.Usage=====There are two executables in @RWVER@\bin:GUI:Rgui.exe runs as a standard Windows GUI executable and provides an Rconsole in its own window. It takes the standard R command-linearguments; these are most easily set by making a shortcut to...\@RWVER@\bin\rgui.exe and adding the arguments in the Target field.Set the `Start in' field of the shortcut to the directory you want to useas the working directory (where workspaces and files are saved andloaded from).Command-line editing is available: see Help | Console for details.The menus provide shortcuts to some R commands such as help, help.start,apropos, ls, load, save.image, search.The `load' menu items (Source R code, Load image) keep track of thedirectory that was last used, and start their dialog boxes from thatdirectory the next time they are used. That directory can be made theworking directory by the File | Change dir menu item. All the `save'menu items start dialog boxes at the current working directory: thisincludes `Save image' and the various ways to save graphics, as well assaving the workspace at the end of the session.Note that the text help files use the latin1 encoding. To see all thecharacters you must use an appropriate font (European-language TrueType fonts should be OK). To check if your preferred font has latin1capability, try "help(text)" and look at the examples. [Note: only afew help files make use of latin1 characters not contained in thestandard ASCII set so if you like a font without latin1 capability,use it.]TERMINAL/BATCH:Rterm.exe will run from a command line such as an MS-DOS or CommandsWindow running the standard shells, command.com (9x) and cmd.exe (NT),as well as the ports of bash and tcsh that we use. Its primarypurpose is to allow batch operation, but it does provide all thefacilities needed for interactive use, including simple command-lineediting.Batch use: At it simplest, Rterm.exe can be used in a batch mode bycommands likeRterm.exe --vsize=10M --nsize=400k --no-restore --no-save < infile > outfilealthough users will probably want to set up simple .bat or .cmd filesto run batch jobs.Use with ESS: You can use Rterm.exe to provide inferior R-mode inESS under NTEmacs, for example ess-5.1.11. The pager is automaticallyset to "console" so help will be displayed in emacs buffers.GRAPHICS:The screen device is called windows(). This is launched automatically,and can also be launched explicitly by windows() or win.graph() (orx11()) from both Rgui.exe and Rterm.exe. A printer device can beopened using win.print(), and graphs drawn as metafiles bywin.metafile().The graphics device pops up a separate window which has two menus. Thedevice's File menu allows saving or printing or to run dev.off().The History menu allows the recording of plots. When plots have beenrecorded they can be reviewed by PgUp and PgDn, saved and replaced.Recording can be turned on automatically (the Recording item on thelist) or individual plots can be added (Add or the INS key).The whole plot history can be saved to or retrieved from an R variablein the global environment.There is only one graphics history shared by all the windows devices.HELP:There are several options for help, depending on which help files youinstalled.(i) Text help. This is the default, and the fallback option.It will display in the currently set pager (use options(pager=) to change).(ii) Compiled HTML files. Set this as the default byoptions(chmhelp=T) or for individual help items by help(topic,chmhelp=T). Full text search is available from the Search tab. Tomake use of this you will need a recent version of Windows or IE4 orlater installed, or use the updater hhupd.exe on CRAN atbin/windows/windows-NT/etc.(iii) Windows .hlp files. Set this as the default byoptions(winhelp=T) or for individual help items by help(topic,winhelp=T). Full text search is available from the Search tab. Theconversion to this format is a little rough, and tables may beincomplete. The help on Japanese fonts has been omitted.(iv) HTML help to be displayed in your normal browser. Set this asthe default by options(htmlhelp=T) or for individual help items byhelp(topic, htmlhelp=T). Using help.start() sets the browser to thetop-level page, from which you can access a search engine.(v) Latex help files are available for use with help(topic, offline=T).You will need to customize the file @RWVER@\bin\helpPRINT.bat: itcontains instructions.Customization=============Environment variables can be set as NAME=value on the command line,including in a short-cut. They can also be set (as NAME=value lines)in the file .Renviron in the working directory, or if that does notexist HOME\.Renviron.Many aspects of the console (size, appearance, font, font size,colours) can be customized by editing the file etc\Rconsole, and acopy with a user's settings can be put in her HOME directory or in theworking directory. (The exact sequence is to search the directorypointed to by the first found of the environment variables R_USER thenHOME then {HOMEDRIVE}{HOMEPATH} then the working directory, finallyR_HOME\etc. This applies to .Renviron and other uses of `HOME' in ourdocumentation.) The file contains a description of the settings thatcan be altered. See also ?Rconsole.The mapping between Windows fonts and R font's number can be set byediting the file etc\Rdevga, and a copy with a user's settings can beput in the HOME or working directory (see the description ofRconsole). This mapping applies to both the screen device and theprinter device.Many R defaults can be set in the file R_HOME\etc\Rprofile or a user'sfile .Rprofile. In particular:- The pager is set by options(pager=). The default is "internal" whichbrings up a separate console-like window. The internal pager can usea single window or a different window for each topic shown(configurable in etc\Rconsole). Other possibilities we haveused are "notepad" and "pfe32 /v", and "console" to list the files inthe console (rgui.exe) or terminal window (rterm.exe).Adding packages===============Binaries for many packages are available atCRAN/bin/windows/windows-NT/contrib. These are zip files which shouldbe unpacked in @RWVER@\library. They are then available for use. Youcan also use the installer rwinst.exe to selectively unpack the zipfiles.The list of packages and functions given by HTML help and used by thesearch engine can be updated from a running R process by the commandlink.html.help()provided the owner of the process has write permission on@RWVER@\doc\html. If you have the source-package files and Perlinstalled you can (and should in preference) usecd ...\@RWVER@\src\gnuwin32\helpmake indicesPrivate libraries of packages can be used and can be specified by theenvironment variable R_LIBS. (Separate directories by ";" in thisversion.) They will not be linked to HTML help. In more detail, touse packages installed in directory R:\libraries\gm, setR_LIBS=R:\libraries\gmin the environment or your .Renviron file or on the command line, oradd the line.lib.loc <- c("R:/libraries/gm", .lib.loc)to your .Rprofile or at the end of R_HOME\etc\Rprofile.To install a package from source code you need the source-packagedistribution @RWVER@sp.zip installed (but not the R source). Thiscontains detailed instructions.Differences from Unix versions of R===================================- R can be interrupted by Esc in Rgui and by Ctrl-C or Ctrl-Break in Rterm:Ctrl-C is used for copying in the GUI version. C-c C-c worksunder NTemacs.- Command-line editing is always available, but is much simpler thanunder readline-based input on Unix.- The commands history is saved between sessions only by Rgui: it isalways saved even if the workspace is not saved.- The HTML function and package lists and search datasbase are notre-generated automatically by html.start(). Use link.html.help().- Paths to files can be specified with "/" or "\\".- Using help.start() does not automatically send help requests to thebrowser: use options(htmlhelp=T) to turn this on.- Graphics save and replay are only available here.- system() is enhanced here and does not automatically use a shell.See its help page and that of shell().- graphics devices png(), jpeg() and bmp() are available in this version.Building From Source====================See the file INSTALL in the source distribution and the rw-FAQ.Feedback========Please send comments and bug reports to (preferably both of)Guido Masarotto <guido@hal.stat.unipd.it>Brian Ripley <ripley@stats.ox.ac.uk>