The R Project SVN R

Rev

Rev 26251 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26251 Rev 27878
1
R @RVER@ for Windows
1
R @RVER@ for Windows
2
===================
2
===================
3
 
3
 
4
This distribution contains a binary distribution of R-@RVER@ to run on
4
This distribution contains a binary distribution of R-@RVER@ to run on
5
Windows 95, 98, ME, NT4, 2000 and XP on Intel/clone chips.  It is designed
5
Windows 95, 98, ME, NT4, 2000 and XP on Intel/clone chips.  It is designed
6
to be as close as possible to the implementation on Unix, but see the
6
to be as close as possible to the implementation on Unix, but see the
7
list of differences below.  The port was by Guido Masarotto, Brian
7
list of differences below.  The port was by Guido Masarotto, Brian
8
Ripley and Duncan Murdoch.
8
Ripley and Duncan Murdoch.
9
 
9
 
10
See the file `CHANGES' for the new features of this version.
10
See the file `CHANGES' for the new features of this version.
11
 
11
 
12
You will need MSVCRT.dll installed.  It is installed on all recent
12
You will need MSVCRT.dll installed.  It is installed on all recent
13
Windows installations, but not all Windows 95 machines.  You can
13
Windows installations, but not all Windows 95 machines.  You can
14
download it from
14
download it from
15
 
15
 
16
	ftp://ftp.microsoft.com/softlib/mslfiles/msvcrt.exe
16
	ftp://ftp.microsoft.com/softlib/mslfiles/msvcrt.exe
17
 
17
 
18
a self-extracting zip archive that contains instructions.
18
a self-extracting zip archive that contains instructions.
19
 
19
 
20
 
20
 
21
Installation
21
Installation
22
============
22
============
23
 
23
 
24
The distribution can be obtained in two versions:
24
The distribution can be obtained in two versions:
25
 
25
 
26
1) A 21Mb file @RWVER@.exe.  Just run this for a Windows-XP style
26
1) A 21Mb file @RWVER@.exe.  Just run this for a Windows-XP style
27
installer.  It contains all the R components, and you can select what
27
installer.  It contains all the R components, and you can select what
28
want installed.
28
want installed.
29
 
29
 
30
 
30
 
31
2) Files miniR.exe and miniR-1.bin to miniR-8.bin.  If you need to,
31
2) Files miniR.exe and miniR-1.bin to miniR-8.bin.  If you need to,
32
put miniR.exe and miniR-1.bin on one floppy, and miniR-2.bin to
32
put miniR.exe and miniR-1.bin on one floppy, and miniR-2.bin to
33
miniR-8.bin on separate floppies.
33
miniR-8.bin on separate floppies.
34
 
34
 
35
This is a small installation, containing text and compiled HTML help
35
This is a small installation, containing text and compiled HTML help
36
and the Introduction to R and Data Import/Export manuals in PDF.
36
and the Introduction to R and Data Import/Export manuals in PDF.
37
There is no package tcltk.
37
There is no package tcltk.
38
 
38
 
39
 
39
 
40
For more details, including command-line options for the installers 
40
For more details, including command-line options for the installers 
41
and how to uninstall, see the rw-FAQ.  If you are reading this as part of
41
and how to uninstall, see the rw-FAQ.  If you are reading this as part of
42
an installed version of R, that's both file rw-FAQ in this directory
42
an installed version of R, that's both file rw-FAQ in this directory
43
and file doc\html\rw-FAQ.html.
43
and file doc\html\rw-FAQ.html.
44
 
44
 
45
 
45
 
46
Usage
46
Usage
47
=====
47
=====
48
 
48
 
49
There are two versions of the R executable in @RWVER@\bin:
49
There are two versions of the R executable in @RWVER@\bin:
50
 
50
 
51
GUI:
51
GUI:
52
 
52
 
53
Rgui.exe runs as a standard Windows GUI executable and provides an R
53
Rgui.exe runs as a standard Windows GUI executable and provides an R
54
console in its own window.  It takes the standard R command-line
54
console in its own window.  It takes the standard R command-line
55
arguments; these are most easily set by making a shortcut to
55
arguments; these are most easily set by making a shortcut to
56
...\@RWVER@\bin\Rgui.exe and adding the arguments in the Target field.
56
...\@RWVER@\bin\Rgui.exe and adding the arguments in the Target field.
57
Set the `Start in' field of the shortcut to the directory you want to use
57
Set the `Start in' field of the shortcut to the directory you want to use
58
as the working directory (where workspaces and files are saved to and
58
as the working directory (where workspaces and files are saved to and
59
loaded from).  The @RWVER@.exe and miniR.exe installers create a
59
loaded from).  The @RWVER@.exe and miniR.exe installers create a
60
shortcut on the desktop for you (by default).
60
shortcut on the desktop for you (by default).
61
 
61
 
62
You have a choice of interface: SDI (separate windows) or MDI
62
You have a choice of interface: SDI (separate windows) or MDI
63
(multiple child windows in one large window).  MDI is the default:
63
(multiple child windows in one large window).  MDI is the default:
64
select SDI by adding --sdi in the Target field.
64
select SDI by adding --sdi in the Target field.
65
 
65
 
66
Command-line editing is available: see Help | Console for details.
66
Command-line editing is available: see Help | Console for details.
67
 
67
 
68
The menus provide shortcuts to some R commands such as help, help.start,
68
The menus provide shortcuts to some R commands such as help, help.start,
69
apropos, ls, load, save.image, search.
69
apropos, ls, load, save.image, search.
70
 
70
 
71
The `load' menu items (Source R code, Display file, Load Workspace)
71
The `load' menu items (Source R code, Display file, Load Workspace)
72
keep track of the directory that was last used, and start their dialog
72
keep track of the directory that was last used, and start their dialog
73
boxes from that directory the next time they are used.  That directory
73
boxes from that directory the next time they are used.  That directory
74
can be made the working directory by the File | Change dir menu item.
74
can be made the working directory by the File | Change dir menu item.
75
All the `save' menu items start dialog boxes at the current working
75
All the `save' menu items start dialog boxes at the current working
76
directory: this includes `Save Workspace' and the various ways to save
76
directory: this includes `Save Workspace' and the various ways to save
77
graphics, as well as saving the workspace at the end of the session.
77
graphics, as well as saving the workspace at the end of the session.
78
 
78
 
79
Note that the text help files use the latin1 encoding.  To see all the
79
Note that the text help files use the latin1 encoding.  To see all the
80
characters you must use an appropriate font (European-language True
80
characters you must use an appropriate font (European-language True
81
Type fonts should be OK).  To check if your preferred font has latin1
81
Type fonts should be OK).  To check if your preferred font has latin1
82
capability, try "help(text)" and look at the examples.   [Note: only a
82
capability, try "help(text)" and look at the examples.   [Note: only a
83
few help files make use of latin1 characters not contained in the
83
few help files make use of latin1 characters not contained in the
84
standard ASCII set so if you like a font without latin1 capability,
84
standard ASCII set so if you like a font without latin1 capability,
85
use it.]
85
use it.]
86
 
86
 
87
 
87
 
88
TERMINAL/BATCH:
88
TERMINAL/BATCH:
89
 
89
 
90
Rterm.exe will run from a command line such as an MS-DOS or Commands
90
Rterm.exe will run from a command line such as an MS-DOS or Commands
91
Window running the standard shells, command.com (9x/ME) and cmd.exe
91
Window running the standard shells, command.com (9x/ME) and cmd.exe
92
(NT4/2000/XP), as well as the ports of bash and tcsh that we use.  Its
92
(NT4/2000/XP), as well as the ports of bash and tcsh that we use.  Its
93
primary purpose is to allow batch operation, but it does provide all
93
primary purpose is to allow batch operation, but it does provide all
94
the facilities needed for interactive use, including command-line
94
the facilities needed for interactive use, including command-line
95
editing (see the file README.Rterm).
95
editing (see the file README.Rterm).
96
 
96
 
97
Batch use: At its simplest, Rterm.exe can be used in a batch mode by
97
Batch use: At its simplest, Rterm.exe can be used in a batch mode by
98
commands like
98
commands like
99
 
99
 
100
Rterm.exe --no-restore --no-save < infile > outfile 2>&1
100
Rterm.exe --no-restore --no-save < infile > outfile 2>&1
101
 
101
 
102
(users of Windows 95/98/ME should omit 2>&1) although users will
102
(users of Windows 95/98/ME should omit 2>&1) although users will
103
probably want to set up simple .bat or .cmd files to run batch
103
probably want to set up simple .bat or .cmd files to run batch
104
jobs. You can also use it via Rcmd BATCH: see ?BATCH or Rcmd BATCH
104
jobs. You can also use it via Rcmd BATCH: see ?BATCH or Rcmd BATCH
105
--help.
105
--help.
106
 
106
 
107
Use with ESS: You can use Rterm.exe to provide inferior R-mode in ESS
107
Use with ESS: You can use Rterm.exe to provide inferior R-mode in ESS
108
under NTEmacs, for example with ess-5.1.20.  The pager is
108
under NTEmacs, for example with ess-5.1.20.  The pager is
109
automatically set to "console" so text help will be displayed in emacs
109
automatically set to "console" so text help will be displayed in emacs
110
buffers.
110
buffers.
111
 
111
 
112
 
112
 
113
GRAPHICS:
113
GRAPHICS:
114
 
114
 
115
The screen device is called windows().  This is launched automatically,
115
The screen device is called windows().  This is launched automatically,
116
and can also be launched explicitly by windows() or win.graph() (or
116
and can also be launched explicitly by windows() or win.graph() (or
117
x11()) from both Rgui.exe and Rterm.exe.  A printer device can be
117
x11()) from both Rgui.exe and Rterm.exe.  A printer device can be
118
opened using win.print(), and graphs drawn as metafiles by
118
opened using win.print(), and graphs drawn as metafiles by
119
win.metafile().
119
win.metafile().
120
 
120
 
121
The graphics device pops up a separate window which has two menus.  The
121
The graphics device pops up a separate window which has two menus.  The
122
device's File menu allows saving or printing or to run dev.off().
122
device's File menu allows saving or printing or to run dev.off().
123
 
123
 
124
The History menu allows the recording of plots.  When plots have been
124
The History menu allows the recording of plots.  When plots have been
125
recorded they can be reviewed by PgUp and PgDn, saved and replaced.
125
recorded they can be reviewed by PgUp and PgDn, saved and replaced.
126
Recording can be turned on automatically (the Recording item on the
126
Recording can be turned on automatically (the Recording item on the
127
list) or individual plots can be added (Add or the INS key).
127
list) or individual plots can be added (Add or the INS key).
128
The whole plot history can be saved to or retrieved from an R variable
128
The whole plot history can be saved to or retrieved from an R variable
129
in the global environment.
129
in the global environment.
130
 
130
 
131
There is only one graphics history shared by all the windows devices.
131
There is only one graphics history shared by all the windows devices.
132
 
132
 
133
 
133
 
134
HELP:
134
HELP:
135
 
135
 
136
There are several options for help, depending on which help files you
136
There are several options for help, depending on which help files you
137
installed.
137
installed.
138
 
138
 
139
(i) Text help.  This is the default, and the fallback option.
139
(i) Text help.  This is the default, and the fallback option.
140
It will display in the currently set pager (use options(pager=) to change).
140
It will display in the currently set pager (use options(pager=) to change).
141
 
141
 
142
(ii) Compiled HTML files.  Set this as the default by
142
(ii) Compiled HTML files.  Set this as the default by
143
options(chmhelp=TRUE) or for individual help items by help(topic,
143
options(chmhelp=TRUE) or for individual help items by help(topic,
144
chmhelp=TRUE).  Full text search is available from the Search tab.
144
chmhelp=TRUE).  Full text search is available from the Search tab.
145
According to Microsoft, to make use of this you will need to have IE3
145
According to Microsoft, to make use of this you will need to have IE3
146
or later installed and a recent version of Windows or (not Windows
146
or later installed and a recent version of Windows or (not Windows
147
XP or 2000 or ME) use the updater hhupd.exe at
147
XP or 2000 or ME) use the updater hhupd.exe at
148
http://msdn.microsoft.com/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp
148
http://msdn.microsoft.com/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp
149
 
149
 
150
(iii) HTML help to be displayed in your normal browser.  Set this as
150
(iii) HTML help to be displayed in your normal browser.  Set this as
151
the default by options(htmlhelp=TRUE) or for individual help items by
151
the default by options(htmlhelp=TRUE) or for individual help items by
152
help(topic, htmlhelp=TRUE).  Using help.start() sets the browser to
152
help(topic, htmlhelp=TRUE).  Using help.start() sets the browser to
153
the top-level page, from which you can access a search engine.
153
the top-level page, from which you can access a search engine.
154
 
154
 
155
(iv) Latex help files are available for use with help(topic,
155
(iv) Latex help files are available for use with help(topic,
156
offline=TRUE).  You will need to customize the file
156
offline=TRUE).  You will need to customize the file
157
@RWVER@\bin\helpPRINT.bat: it contains instructions.
157
@RWVER@\bin\helpPRINT.bat: it contains instructions.
158
 
158
 
159
(v) Windows .hlp files.  [Only available if building from sources.]
-
 
160
Set this as the default by options(winhelp=TRUE) or for individual
-
 
161
help items by help(topic, winhelp=TRUE).  Full text search is
-
 
162
available from the Search tab.  The conversion to this format is a
-
 
163
little rough, and tables may be incomplete.  The help on Hershey and
-
 
164
Japanese fonts has been omitted.
-
 
165
 
-
 
166
 
159
 
167
 
160
 
168
Customization
161
Customization
169
=============
162
=============
170
 
163
 
171
Environment variables can be set as NAME=value at the end of the
164
Environment variables can be set as NAME=value at the end of the
172
command line, including in a shortcut.  They can also be set (as
165
command line, including in a shortcut.  They can also be set (as
173
NAME=value lines) in the file .Renviron in the working directory, or
166
NAME=value lines) in the file .Renviron in the working directory, or
174
if that does not exist HOME\.Renviron.
167
if that does not exist HOME\.Renviron.
175
 
168
 
176
Many aspects of the console (size, appearance, font, font size,
169
Many aspects of the console (size, appearance, font, font size,
177
colours) can be customized by editing the file etc\Rconsole, and a
170
colours) can be customized by editing the file etc\Rconsole, and a
178
copy with a user's settings can be put in her HOME directory or in the
171
copy with a user's settings can be put in her HOME directory or in the
179
working directory.  (The exact sequence is to search the directory
172
working directory.  (The exact sequence is to search the directory
180
pointed to by the first found of the environment variables R_USER then
173
pointed to by the first found of the environment variables R_USER then
181
HOME then {HOMEDRIVE}{HOMEPATH} then the working directory, finally
174
HOME then {HOMEDRIVE}{HOMEPATH} then the working directory, finally
182
R_HOME\etc.  This also applies to .Renviron and other uses of `HOME'
175
R_HOME\etc.  This also applies to .Renviron and other uses of `HOME'
183
in our documentation.)  The file contains a description of the
176
in our documentation.)  The file contains a description of the
184
settings that can be altered.  See also ?Rconsole.
177
settings that can be altered.  See also ?Rconsole.
185
 
178
 
186
An alternative way to edit the Rconsole file is to use the GUI
179
An alternative way to edit the Rconsole file is to use the GUI
187
preferences item on the Edit menu in Rgui.exe.  This can change some
180
preferences item on the Edit menu in Rgui.exe.  This can change some
188
of the settings (for example colours, font and window sizes) on the
181
of the settings (for example colours, font and window sizes) on the
189
current running console.
182
current running console.
190
 
183
 
191
The mapping between Windows fonts and the font number used in R's
184
The mapping between Windows fonts and the font number used in R's
192
graphics can be set by editing the file etc\Rdevga, and a copy with a
185
graphics can be set by editing the file etc\Rdevga, and a copy with a
193
user's settings can be put in the HOME or working directory (see the
186
user's settings can be put in the HOME or working directory (see the
194
description of Rconsole).  This mapping applies to both the screen
187
description of Rconsole).  This mapping applies to both the screen
195
device and the printer device.
188
device and the printer device.
196
 
189
 
197
Many R defaults can be set in the file R_HOME\etc\Rprofile or a user's
190
Many R defaults can be set in the file R_HOME\etc\Rprofile or a user's
198
file .Rprofile.  In particular:
191
file .Rprofile.  In particular:
199
 
192
 
200
- The pager is set by options(pager=).  The default is "internal" which
193
- The pager is set by options(pager=).  The default is "internal" which
201
  brings up a separate console-like window.  The internal pager can use
194
  brings up a separate console-like window.  The internal pager can use
202
  a single window or a different window for each topic shown
195
  a single window or a different window for each topic shown
203
  (configurable in Rconsole).  Other possibilities we have
196
  (configurable in Rconsole).  Other possibilities we have
204
  used are "notepad" and "pfe32 /v", and "console" to list the files in
197
  used are "notepad" and "pfe32 /v", and "console" to list the files in
205
  the console (Rgui.exe) or terminal window (Rterm.exe).
198
  the console (Rgui.exe) or terminal window (Rterm.exe).
206
 
199
 
207
 
200
 
208
Adding packages
201
Adding packages
209
===============
202
===============
210
 
203
 
211
Binaries for many packages are available at
204
Binaries for many packages are available at
212
CRAN/bin/windows/contrib/1.7.  These are zip files which should be
205
CRAN/bin/windows/contrib/1.7.  These are zip files which should be
213
unpacked in @RWVER@\library.  The simplest option is use the items on
206
unpacked in @RWVER@\library.  The simplest option is use the items on
214
the Packages menu to install from a zip file or to download from CRAN.
207
the Packages menu to install from a zip file or to download from CRAN.
215
 
208
 
216
The list of packages and functions given by HTML help and used by the
209
The list of packages and functions given by HTML help and used by the
217
search engine can be updated from a running R process by the command
210
search engine can be updated from a running R process by the command
218
 
211
 
219
	link.html.help()
212
	link.html.help()
220
 
213
 
221
provided the owner of the process has write permission on
214
provided the owner of the process has write permission on
222
@RWVER@\doc\html.
215
@RWVER@\doc\html.
223
 
216
 
224
Private libraries of packages can be used and can be specified by the
217
Private libraries of packages can be used and can be specified by the
225
environment variable R_LIBS.  (Separate directories by ";" in this
218
environment variable R_LIBS.  (Separate directories by ";" in this
226
version.)  They will not be linked to HTML help.  In more detail, to
219
version.)  They will not be linked to HTML help.  In more detail, to
227
use packages installed in directory R:\libraries\gm, set
220
use packages installed in directory R:\libraries\gm, set
228
 
221
 
229
R_LIBS=R:\libraries\gm
222
R_LIBS=R:\libraries\gm
230
 
223
 
231
in the environment or your .Renviron file or on the command line, or
224
in the environment or your .Renviron file or on the command line, or
232
add the line
225
add the line
233
 
226
 
234
.libPaths("R:/libraries/gm")
227
.libPaths("R:/libraries/gm")
235
 
228
 
236
to your .Rprofile or at the end of R_HOME\etc\Rprofile.
229
to your .Rprofile or at the end of R_HOME\etc\Rprofile.
237
 
230
 
238
To install a package from source code you need the source-package
231
To install a package from source code you need the source-package
239
distribution installed from @RWVER@.exe (but not the R sources).  This
232
distribution installed from @RWVER@.exe (but not the R sources).  This
240
contains detailed instructions in file `README.packages'.
233
contains detailed instructions in file `README.packages'.
241
 
234
 
242
 
235
 
243
Differences from Unix versions of R
236
Differences from Unix versions of R
244
===================================
237
===================================
245
 
238
 
246
- R can be interrupted by Esc in Rgui and by Ctrl-C or Ctrl-Break in Rterm:
239
- R can be interrupted by Esc in Rgui and by Ctrl-C or Ctrl-Break in Rterm:
247
  Ctrl-C is used for copying in the GUI version.  C-c C-c works
240
  Ctrl-C is used for copying in the GUI version.  C-c C-c works
248
  under NTemacs.
241
  under NTemacs.
249
 
242
 
250
- Command-line editing is always available, but is simpler than
243
- Command-line editing is always available, but is simpler than
251
  under readline-based input on Unix.  For Rgui.exe, see the menu item
244
  under readline-based input on Unix.  For Rgui.exe, see the menu item
252
  `Help | Console', for Rterm.exe the file README.Rterm.
245
  `Help | Console', for Rterm.exe the file README.Rterm.
253
 
246
 
254
- Paths to files can be specified with "/" or "\\".
247
- Paths to files can be specified with "/" or "\\".
255
 
248
 
256
- Using help.start() does not automatically send help requests to the
249
- Using help.start() does not automatically send help requests to the
257
  browser: use options(htmlhelp=TRUE) to turn this on.
250
  browser: use options(htmlhelp=TRUE) to turn this on.
258
 
251
 
259
- system() is enhanced here and does not automatically use a shell.
252
- system() is enhanced here and does not automatically use a shell.
260
  See its help page and that of shell().
253
  See its help page and that of shell().
261
 
254
 
262
- graphics device bmp() is available in this version.
255
- graphics device bmp() is available in this version.
263
 
256
 
264
 
257
 
265
Using package tcltk
258
Using package tcltk
266
===================
259
===================
267
 
260
 
268
The package tcltk supports building graphical interfaces with Tcl/Tk.
261
The package tcltk supports building graphical interfaces with Tcl/Tk.
269
"Support Files for library(tcltk)" needs to be selected from the
262
"Support Files for library(tcltk)" needs to be selected from the
270
installer for this to work; alternatively you can use an existing
263
installer for this to work; alternatively you can use an existing
271
installation of Tcl/Tk 8.4.x by following the instructions in the
264
installation of Tcl/Tk 8.4.x by following the instructions in the
272
rw-FAQ.
265
rw-FAQ.
273
 
266
 
274
 
267
 
275
Building From Source
268
Building From Source
276
====================
269
====================
277
 
270
 
278
See the file @RWVER@\src\gnuwin32\INSTALL in the source distribution
271
See the file @RWVER@\src\gnuwin32\INSTALL in the source distribution
279
and the rw-FAQ.
272
and the rw-FAQ.
280
 
273
 
281
 
274
 
282
Feedback
275
Feedback
283
========
276
========
284
 
277
 
285
Please send comments and bug reports to
278
Please send comments and bug reports to
286
 
279
 
287
	R-windows@r-project.org
280
	R-windows@r-project.org
288
 
281