Rev 81899 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
R @FULLVERSION@ for Windows===================This distribution contains a binary distribution of R-@RVER@ to run on64-bit versions of Windows 7 and later on x86_64 chips.It is designed to be as close as possible to theimplementation on Unix, but see the list of differences below. Theport was by Guido Masarotto, Brian Ripley and Duncan Murdoch.Installation============The distribution is distributed as an installer @RWVER@-win.exe. Justrun this for a Windows-style installer.For more details, including command-line options for the installer andhow to uninstall, see the rw-FAQ. If you are reading this as part ofan installed version of R, that is both a file rw-FAQ in this directoryand a file doc\html\rw-FAQ.html.Usage=====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\x64\Rgui.exe and adding thearguments in the Target field. Set the 'Start in' field of theshortcut to the directory you want to use as the working directory(where workspaces and files are saved to and loaded from). Theinstaller creates a shortcut on the desktop for you (by default).You have a choice of interface: SDI (separate windows) or MDI(multiple child windows in one large window). MDI is the default:select SDI by adding --sdi in the Target field: this can also beselected from the installer.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, Display file, Load Workspace)keep track of the directory that was last used, and start their dialogboxes from that directory the next time they are used. That directorycan be made the working directory by the File | Change dir menu item.All the 'save' menu items start dialog boxes at the current workingdirectory: this includes 'Save Workspace' and the various ways to savegraphics, as well as saving the workspace at the end of the session.Note that a few of the text help files use accented Western European.To see all the characters you must use an appropriate font(European-language True Type fonts should be OK). To check if yourpreferred font has these characters, try "help(text)" and look at theexamples.TERMINAL/BATCH:Rterm.exe will run from a command line such as a 'Command Prompt'window running the standard shell, cmd.exe, as well as the ports ofbash and tcsh that we use. Its primary purpose is to allow batchoperation, but it does provide all the facilities needed forinteractive use, including command-line editing (see the fileREADME.Rterm).Batch use: At its simplest, Rterm.exe can be used in a batch mode bycommands likeRterm.exe --no-restore --no-save < infile > outfile 2>&1although users will probably want to set up simple .bat or .cmd filesto run batch jobs. You can also use it via R CMD BATCH: see ?BATCH orR CMD BATCH --help.Use with ESS: You can use Rterm.exe to provide inferior R-mode in ESSunder NTEmacs. The pager is automatically set to "console" so texthelp will be displayed in emacs buffers.GRAPHICS:The screen device is called windows(). This is launchedautomatically, and can also be launched explicitly by windows() fromboth Rgui.exe and Rterm.exe. A printer device can be opened usingwin.print(), and graphs drawn as metafiles by win.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.The format of recorded plots may change between R versions.Recorded plots should NOT be used as a permanentstorage format for R plots.There is only one graphics history shared by all the windows devices.Customization=============Environment variables can be set as NAME=value at the end of thecommand line, including in a shortcut. They can also be set (asNAME=value lines) in the file .Renviron in the working directory, orif that does not exist 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 the Windows "personal" directory (typically'C:\Users\username\My Documents' on recent versions of Windows) then{HOMEDRIVE}{HOMEPATH} then the working directory, finally R_HOME\etc.This also applies to .Renviron and other uses of 'HOME' in ourdocumentation.) The file contains a description of the settings thatcan be altered. See also ?Rconsole.An alternative way to edit the Rconsole file is to use the GUIpreferences item on the Edit menu in Rgui.exe. This can change someof the settings (for example colours, font and window sizes) on thecurrent running console.The mapping between Windows fonts and the font number used in R'sgraphics can be set by editing the file etc\Rdevga, and a copy with auser's settings can be put in the HOME or working directory (see thedescription of Rconsole). This mapping applies to both the screendevice and the printer 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"which brings up a separate console-like window. The internal pagercan use a single window or a different window for each topic shown(configurable in Rconsole). Other possibilities we have used are"notepad" and "console" to list the files in the console (Rgui.exe)or terminal window (Rterm.exe).Adding packages===============Binaries for many packages are available underCRAN/bin/windows/contrib. These are zip files which should beunpacked in @RWVER@\library. The simplest option is use the items onthe Packages menu to install from a zip file or to download from CRAN.Private 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.libPaths("R:/libraries/gm")to your .Rprofile or at the end of R_HOME\etc\Rprofile.To install a package from source code you need the source-packagedistribution installed from @RWVER@-win32.exe (but not the R sources).The 'R Installation and Administration' manual contains detailedinstructions.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 simpler thanunder readline-based input on Unix. For Rgui.exe, see the menu item'Help | Console', for Rterm.exe the file README.Rterm.- Paths to files can be specified with "/" or "\\".- system() is enhanced here and does not automatically use a shell.See its help page and that of shell().- graphics device bmp() is available in this version.Using package tcltk===================The package tcltk supports building graphical interfaces with Tcl/Tk."Support Files for Package tcltk" needs to be selected from theinstaller for this to work; alternatively you can use an existinginstallation of Tcl/Tk 8.6.x by following the instructions in therw-FAQ.Building From Source====================See the 'R Installation and Adminstration' Manual(doc\manual\R-admin.html).Feedback========Please send comments and bug reports toR-windows@r-project.org