The R Project SVN R

Rev

Rev 50959 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8699 ripley 1
		Windows-specific changes to R
2
		=============================
3
 
31279 ripley 4
For changes since the release of R 2.0.0 on 4 Oct 2004 see the files
5
CHANGES.
8699 ripley 6
 
21473 ripley 7
 
28991 murdoch 8
rw2000
9
======
10
 
31008 ripley 11
The miniR distribution no longer included compiled HTML help (to stop
12
it needing 10 floppies rather than 7).
13
 
29051 murdoch 14
Added Rgui script editor by Chris Jackson.  Supports object name
15
in window caption in edit() and fix().
28991 murdoch 16
 
30426 ripley 17
Changed preferences menu button "Finish" to "OK".
28991 murdoch 18
 
29159 murdoch 19
Changed search order for user home directory to use "My Documents" 
29320 ripley 20
directory after HOME and before HOMEDRIVE/HOMEPATH.
28991 murdoch 21
 
29227 murdoch 22
Added functions setWindowTitle(), getWindowTitle(), and 
23
getIdentification().
29045 ripley 24
 
29227 murdoch 25
Added function getWindowsHandle().
29159 murdoch 26
 
30472 ripley 27
The windows() device has a new 'bg' argument to set the background
28
colour (which still defaults to "transparent").
29163 ripley 29
 
30970 ripley 30
The C headers files are now installed into R_HOME/include rather than
30054 ripley 31
R_HOME/src/include (as on Unix).
29227 murdoch 32
 
30176 murdoch 33
choose.files() now expands '~' to the user's home directory, as 
34
most other file system functions do.
29320 ripley 35
 
30262 murdoch 36
(For those building R:) The Makefile now aborts if sub-makes in any of
37
several for-loops fail.
30054 ripley 38
 
30426 ripley 39
R BATCH|SHLIB|INSTALL|REMOVE no longer work: use Rcmd or R CMD (as
40
required under Unix) instead.
30262 murdoch 41
 
30632 ripley 42
Rcmd INSTALL now does a `safe installation': it moves away any
43
existing installation of the packages, and moves them back if it
44
fails.  In any case, a failed installation is removed.  Bundles are
45
processed differently, by combining the DESCRIPTION and DESCRIPTION.in
30970 ripley 46
files and processing each package separately.  Installation of a
47
bundle now fails as soon as installing any component package fails.
31081 ripley 48
It is possible to install the current directory by `Rcmd INSTALL .' .
30426 ripley 49
 
30658 murdoch 50
winMenuAdd() and winMenuAddItem() now allow addition of menu items to
51
the console and graphics windows and their popup menus.  Repeated
52
addition of the same menu no longer leads to duplicate menus.
53
winMenuDel() now deletes all submenus and items within the menu.
30472 ripley 54
 
30743 ripley 55
Building a complete distribution has an extra step, as the grid
56
vignettes depend on lattice (and so were incomplete in R 1.9.x on both
57
Unix and Windows).
30472 ripley 58
 
30766 ripley 59
The manual way of building packages is now deprecated, and it is no
60
longer possible to use it to build bundles (which was never documented).
61
Cross-building of packages is now done by the XINSTALL script.
30658 murdoch 62
 
30917 murdoch 63
bringToTop() in MDI mode now brings the whole MDI frame to the top
64
before raising the chosen window within it.
30743 ripley 65
 
31016 ripley 66
There is a new utility to check the installation (not miniR.exe).
67
Open a Command Prompt/MS-DOS window, cd to the top of the installation
68
(where the READMEs are) and run
30766 ripley 69
 
30970 ripley 70
	bin\md5check MD5
30917 murdoch 71
 
31016 ripley 72
Any changed or missing files will be reported.  You can also
73
double-click to run the file -- it will open a window which will stay
31081 ripley 74
open if there are any errors and close quickly otherwise.
30970 ripley 75
 
31081 ripley 76
The `Manuals' menu item in RGui is renamed to `Manuals (in PDF)', and
77
is now greyed out if no manuals are present (which GraphApp was not
78
doing correctly).
30970 ripley 79
 
31008 ripley 80
There is a new component in the main installer for the sources of the
81
help pages (the man subdirectories of the libraries) -- these were
82
not installed under Windows before.
30970 ripley 83
 
31158 ripley 84
The RGui menu item for installing packages from CRAN make uses of the
31173 ripley 85
(non-default) setting of install.packages(dependencies = TRUE) to fetch
31158 ripley 86
all the other packages needed to run those specified.
31008 ripley 87
 
31173 ripley 88
Improvements to file("clipboard") connections -- see ?file plus some
89
more warnings e.g. if the clipboard becomes full.
31008 ripley 90
 
31242 murdoch 91
Memory leaks were fixed in rproxy.dll (used in (D)COM).  A break
92
to the debugger during rproxy.dll startup may be triggered by setting 
93
the DEBUG_RPROXY environment variable.
31158 ripley 94
 
31173 ripley 95
 
31242 murdoch 96
 
29045 ripley 97
rw1091
98
======
99
 
100
Installing a package with a saved image was not exiting on an error
101
making the image (PR#6769).
102
 
103
Installing a package which failed did not return an error code from
104
Rcmd INSTALL (PR#6768).
105
 
29152 ripley 106
choose.files(multi=FALSE) was liable to give incorrect results (PR#6818).
29045 ripley 107
 
29162 ripley 108
Workaround for bug in Microsoft critical update KB835732:  if HOMEPATH
29187 ripley 109
environment variable is not set properly, R would not start (PR#6802).
29045 ripley 110
 
29515 ripley 111
Under ESS, Rterm could freeze when quitting (PR#6812).
29152 ripley 112
 
29515 ripley 113
The file.show() internal code failed to close its FindFirst handle and
114
so the directory on which it was used (often the R temporary
115
directory) could not be deleted from within R.
29162 ripley 116
 
29289 ripley 117
If a graphics window is opened in a minimized MDI session, it now
118
uses the physical monitor size instead of the zero-sized MDI frame.
29187 ripley 119
 
29371 ripley 120
Using PgUp whilst recording after a multiple of 4 plots failed to save
121
the current plot. (PR#3663 revisited.)
29215 ripley 122
 
29515 ripley 123
It is now possible to install a package with a man file called (INTRO).Rd.
29289 ripley 124
 
29371 ripley 125
 
29515 ripley 126
 
26855 ripley 127
rw1090
128
======
129
 
28410 ripley 130
Both Rterm and Rgui now give usage information via the --help or -h
27089 ripley 131
command-line flag.
26872 ripley 132
 
28138 murdoch 133
There is now a "Misc|Break to debugger" menu option, enabled 
134
when a debugger is detected (somewhat fallibly), or infallibly by the
27590 murdoch 135
"--debug" command line option.  This will cause a trap to an external
27910 ripley 136
debugger, e.g. for running Rgui under gdb.  If the menu item is
137
selected when not running under a debugger R is likely to crash.
28138 murdoch 138
If the "--debug" option is used, R will break to the debugger during
139
command line processing, allowing the startup process to be debugged.
26886 ripley 140
 
27784 ripley 141
Added "stay" argument to bringToTop(), to allow the user to specify
142
that a window should stay on top of other windows.  Also added "stay
143
on top" item to the popup menus.  All of these require R to be running
27910 ripley 144
in SDI mode ("Rgui --sdi" or via the settings in file `Rconsole').
27240 murdoch 145
 
27784 ripley 146
Changed windows() so that new windows fit within the MDI client
27357 murdoch 147
area.
27308 ripley 148
 
28130 murdoch 149
Added winMenuNames() and winMenuItems() functions to query user menus.
27357 murdoch 150
 
28163 ripley 151
Added menu items for www.r-project.org and CRAN on the help menu. 
152
(Wishlist PR#6492)
28130 murdoch 153
 
28410 ripley 154
Added "R" command to be similar to Unix invocation of scripts, e.g.
155
"R CMD INSTALL" is the same as "Rcmd INSTALL".  Rcmd still exists for 
156
backwards compatibility (and to avoid conflicts over the name `R').
157
All of R, R CMD and Rcmd now accept --help.
28163 ripley 158
 
28410 ripley 159
Rcmd Rd2dvi can now be specified as such rather than as Rcmd Rd2dvi.sh.
28372 murdoch 160
 
28544 murdoch 161
Added "Paste commands only" to edit and popup menus in the Rgui console.
162
This allows copying of a block of output, but pasting only the commands
163
back to the console for re-execution.  (Code contributed by Tony Plate.)
28372 murdoch 164
 
28544 murdoch 165
 
27910 ripley 166
Installation
167
------------
27758 ripley 168
 
27910 ripley 169
Parallel make (make -j2, say) can be used, but only usefully on
170
dual-processor (or perhaps hyperthreaded) hosts with at least 384Mb of
171
memory.
172
 
27861 ripley 173
Installing now sorts in the C locale to ensure that a consistent sort
174
order is used.  (Some aspects of sorting used to be done in the locale
175
of the host machine, but Perl and the cygwin-based tools used the
176
ASCII collation order.)
27758 ripley 177
 
27884 ripley 178
The long-untested support for making Windows .hlp files has been withdrawn.
27861 ripley 179
 
27885 ripley 180
There is support for using K. Goto's fast BLAS.  On a 2.6Ghz P4 with
181
1Gb RAM and A a 1000 x 1000 matrix we had the following timings
27867 ripley 182
 
27885 ripley 183
	R BLAS	ATLAS	Goto
184
A %*% A	 3.7	0.65	0.56
185
svd(A)	16.2	7.77	6.83
27884 ripley 186
 
27885 ripley 187
Note that using a fast BLAS is much less effective for smaller
188
matrices as are more common in statistical applications.
189
 
27910 ripley 190
Faster assembler code for exponentiation is used.
191
 
192
Cross-building of R itself now works again.  (It had been broken since
193
1.8.0.)
194
 
195
 
196
Building/installing packages
197
----------------------------
198
 
28372 murdoch 199
R CMD INSTALL/build/check map path names with spaces in to their short
27903 ripley 200
forms.
27885 ripley 201
 
28372 murdoch 202
R CMD INSTALL now supports versioned install via --with-package-versions.
27903 ripley 203
 
27910 ripley 204
Installing (binary) package bundles now checks the MD5 sums and
205
reports success, just as for packages.
206
 
28276 murdoch 207
Added "* DONE" to the end of INSTALL logs so --install option to CHECK
208
will work. (This is a repository maintainer option; see 
209
src/scripts/check.in for docs).
27910 ripley 210
 
28276 murdoch 211
 
27910 ripley 212
Internal changes
213
----------------
214
 
215
The fast bmp/png/jpeg code introduced in R 1.8.0 is used even for
216
256-color displays (as we have now been able to test it on such).
217
 
218
R's internal malloc etc are now remapped to Rm_malloc etc and only
219
used in allocating memory for R objects, the Wilcoxon tests and a few
220
other memory-intensive applications.
221
 
222
Improved malloc routines from the current version of Doug Lea's malloc
223
(as suggested by David Teller) should enable large memory areas to be
224
used more effectively, in particular those over 2Gb where OS support
225
has been enabled.  The initially requested memory is no longer
226
reserved, but as this malloc is able to work with non-contiguous
227
memory chunks that should not matter.
228
 
28309 ripley 229
The installer uses LZMA compression, so Inno Setup >= 4.1.5 is required.
27910 ripley 230
 
28335 murdoch 231
Version 1.2.5 of libpng is now used in binary builds.
28309 ripley 232
 
28335 murdoch 233
 
27784 ripley 234
Bug fixes
235
---------
236
 
27247 ripley 237
Fixed list.files() to properly handle paths like "C:", etc.
238
 
27253 ripley 239
Fixed unlink() to accept empty file list for Unix consistency.
27247 ripley 240
 
27410 ripley 241
Fixed handling of whitespace in Rd2dvi.sh processing of DESCRIPTION
242
files.
27253 ripley 243
 
27410 ripley 244
Fixed handling of "--max-mem-size" syntax error on command line.
27319 ripley 245
 
27421 ripley 246
In RGui, ^T would not transpose the first and second characters on a
247
line.  (PR#5593)
27410 ripley 248
 
27774 murdoch 249
Fixed junk character at start of a pipe(). (PR#5053)
27421 ripley 250
 
28372 murdoch 251
R CMD SHLIB was computing dependencies for all C files, not just those
27898 ripley 252
specified on the command line, and building the DLL from all *.o files
253
in the directory.
27774 murdoch 254
 
28410 ripley 255
The sizes of metafiles in pixels were often coming out one pixel more
28163 ripley 256
than requested, so the background was not quite all painted.  Now we
27946 ripley 257
over-estimate.
27861 ripley 258
 
28486 murdoch 259
Rproxy.dll would cause a crash when transferring large amounts of data.
27898 ripley 260
 
28584 ripley 261
Workaround for Microsoft's esoteric idea that date-times in 1970 before
262
1970-01-01 00:00:00 GMT are invalid, so as.POSIXct("1970-01-01
263
00:00:00") failed in timezones ahead of GMT.
27946 ripley 264
 
28873 ripley 265
Avoid possible segfault with browseURL() on urls of more than 264 chars
266
(although these are not guaranteed to work).
28486 murdoch 267
 
28584 ripley 268
 
28873 ripley 269
 
26610 ripley 270
rw1081
271
======
272
 
26830 ripley 273
Files in inst/ are installed later in the process of installing a
274
package (at the request of Ray Brownrigg: the build process was as
26904 ripley 275
documented in `Writing R Extensions').  CVS files will not be installed.
26610 ripley 276
 
26839 ripley 277
The fast bmp/png/jpeg code introduced in R 1.8.0 is used for saving
278
from menus (and savePlot()) as well as for the devices.
26610 ripley 279
 
26839 ripley 280
Lines drawn at the extreme top or right of the device region (e.g. by
26880 ripley 281
box(which="outer")) might have been drawn one pixel too far from the
26839 ripley 282
origin and so perhaps clipped.
26830 ripley 283
 
26839 ripley 284
In 1.8.0 only, the bottom line of pixels was not copied to the file
26880 ripley 285
for png/jpeg/bmp device plots (as the Windows GDI function used was
26839 ripley 286
incorrectly documented).
287
 
288
File src/nmath/dnt.c was not being built for the standalone Rmath library.
289
 
26904 ripley 290
packageStatus() now works under Windows.
26839 ripley 291
 
27308 ripley 292
Fixed instability under some Windows versions associated with
27157 ripley 293
double buffering of the windows() device. (PR#5173)
26839 ripley 294
 
26904 ripley 295
 
27153 ripley 296
 
24259 ripley 297
rw1080
298
======
299
 
24577 ripley 300
The initial size and position of the MDI frame can be set in Rconsole:
301
see the comments in .../etc/Rconsole.  The initial position of the
24606 ripley 302
console window and graphics windows can be set in Rconsole and in the
303
GUI Preferences editor.
24259 ripley 304
 
26221 ripley 305
The windows() graphics device now has arguments xpos and ypos to set
306
the initial position, overriding the settings in Rconsole.
24724 ripley 307
 
24610 ripley 308
The windows() device has a form of double-buffering: the visible plot
309
is updated only when there has been no plotting for 0.1sec or if the
26109 ripley 310
plot has not been updated for 0.5sec.  This is optional (but on by
311
default) and the timings can be changed: see ?windows.
24259 ripley 312
 
26234 ripley 313
The bmp/png/jpeg devices are around 10x faster when used on >8-bit
314
displays (but use more memory than before).
26221 ripley 315
 
24886 ripley 316
Rterm reverts to sending warning/error messages to stdout on Windows
317
95/98/ME.
24610 ripley 318
 
25887 ripley 319
Rcmd BATCH is now handled in C, and works again on Windows 95/98/ME.
24815 ripley 320
 
27308 ripley 321
Rcmd now sets the TEXINPUTS environment variable so that LaTeX
26146 murdoch 322
macros in share/texmf are available via e.g. "Rcmd latex.exe mydoc".
323
 
24923 ripley 324
Calling dev.off() (or ending a session) when a windows() device is
325
open and recording plots automatically saves the current plot as the
326
last saved plot.
24866 ripley 327
 
25647 ripley 328
The windows (etc) devices use the Windows character metrics, which at
329
least on some systems have non-zero height and depth for space.  This
330
is now overridden.  (This showed up in the baseline placing for
331
plotmath expressions containing a space.)
25253 ripley 332
 
25683 ripley 333
A package's DLL used to be built only if standard source files were
334
seen.  Now src/Makefile.win is run if present, and if that generates
335
src/$(DLLNAME).dll the DLL is installed.  (DLLNAME is the package name
336
unless overridden.)
25382 ripley 337
 
25683 ripley 338
doc/manual/Makefile.win now has targets for fullrefman.{dvi,pdf}.
25647 ripley 339
 
27308 ripley 340
Added "Help | Search help..." menu item to Rgui as a front end to
25838 murdoch 341
help.search().
24807 ripley 342
 
25838 murdoch 343
 
344
 
25683 ripley 345
Bug fixes
346
---------
347
 
24807 ripley 348
The changes to versioned install had ensured that the currently
349
installed copy of a package had its MD5 sums checked, not the version
350
waiting to be installed.  Now the correct version is checked.
351
 
24814 ripley 352
The Copy, Paste, Copy&Paste and Kill buttons in the MDI mode failed to
353
restore focus to the console (see rw1070 RGui changes).
24807 ripley 354
 
24875 ripley 355
The BioConductor people had stolen the menu item for "Install
356
package(s) from CRAN..." so it was not being enabled/disabled
357
properly.
24807 ripley 358
 
25387 ripley 359
The windows() device was not plotting transparent single lines correctly.
24875 ripley 360
 
25683 ripley 361
The scrollbars on the data editor work better for very large matrices,
362
and correctly for more than 65535 columns.
24921 ripley 363
 
25683 ripley 364
The search for a directory for temporary files now checks that TMP and
50959 ripley 365
TEMP point to actual writable directories.
25387 ripley 366
 
25683 ripley 367
PKG_FFLAGS is now used if provided.
368
 
369
bringToTop() tested against the wrong limit for the device list and so
370
would sometimes not work for high-numbered devices if lower-numbered
371
devices had been closed.
372
 
26183 ripley 373
getwd() returns paths separated by / not \.
25683 ripley 374
 
26208 murdoch 375
rproxy fixed so LAPACK gets loaded properly by (D)COM server.
25683 ripley 376
 
26289 murdoch 377
Fixed installer so share/texmf files are installed with developer option.
378
(Sweave.sty continues to be installed in main option.)
26183 ripley 379
 
26378 murdoch 380
Fixed MakePkg so that Rd files with missing line ends at EOF are corrected.
26208 murdoch 381
 
26378 murdoch 382
 
26839 ripley 383
 
24049 ripley 384
rw1071
385
======
386
 
387
The system() function printed a spurious warning when the input argument
388
was used.
389
 
390
The File|Change Dir...|Browse dialog could cause R to crash.
391
 
24205 ripley 392
Fixed a bug in versioned install of binary package bundles.
24049 ripley 393
 
24065 ripley 394
Help for max.col was not being found in CHTML help: we have worked around
395
a bug in HHW.
396
 
24205 ripley 397
The maximum allowed `pointsize' for a windows() device has been
398
increased to 48: some people have much bigger screens these days.
24065 ripley 399
 
24258 ripley 400
Rcmd BATCH in rw1070 incorrectly required the R::Utils Perl module.
24065 ripley 401
 
24295 ripley 402
The data editor no longer takes almost all the CPU cycles when running.
24258 ripley 403
 
24295 ripley 404
Fixed a bug in the data editor display that sometimes led to R failing
405
to shutdown.
24258 ripley 406
 
24295 ripley 407
Added some conditional compilation directives to the source so that the
408
replacement malloc() (see INSTALL) need not be used.
24265 ripley 409
 
24295 ripley 410
Changed the installer build code so that patch versions are named
27308 ripley 411
rwXXXXpat.exe, development versions are named rwXXXXdev.exe, and
24563 ripley 412
beta versions are named rwXXXXbeta.exe.
24295 ripley 413
 
24308 ripley 414
Fixed bugs that caused crash when windows were resized repeatedly.(PR#1711)
24295 ripley 415
 
27308 ripley 416
Changed help to use the 'title' parameter of file.show when displaying
24463 ripley 417
help, for consistency with Unix versions.
24295 ripley 418
 
27308 ripley 419
Default in installer changed so a normal user installation will
24481 ripley 420
include the source package installation files.
24322 ripley 421
 
24516 ripley 422
Moved the Sweave style file to the main install group.
24463 ripley 423
 
24481 ripley 424
 
24516 ripley 425
 
21469 murdoch 426
rw1070
427
======
8699 ripley 428
 
23339 ripley 429
This version of R needs more memory and is slower to start up, because
430
it loads more packages by default.  This is only likely to be a
431
concern on machines with 16Mb of memory or less than 300MHz
432
processors.  For such machines append R_DEFAULT_PACKAGES=ctest to the
23720 ripley 433
command line in the shortcut used to run R, when the memory usage will
434
be about equal to that of rw1062.
23339 ripley 435
 
22481 ripley 436
There is a new option to use file("clipboard") to read from or write
437
to the clipboard.  As most input/output functions in R use file(),
438
this makes it possible to read data from or write data to the
439
clipboard in many ways, including direct use of read/writeClipboard().
440
 
22785 ripley 441
When using download.file() with the internal method and a proxy, the
442
user/password combination can be set to prompt the user with a
443
username/password dialog box, and this will be presented on proxy
444
authentication failure.
445
 
27308 ripley 446
New function choose.files() for interactive multiple file selection.
22138 murdoch 447
 
22705 ripley 448
The output from formatC() uses e+/-0n not e+/-00n for compatibility with
449
other platforms and with format().
22093 ripley 450
 
21550 ripley 451
A site-wide environment file R_HOME/etc/Renviron.site (or as set by
452
the `R_ENVIRON' environment variable) is now implemented on Windows.
21469 murdoch 453
 
22854 ripley 454
The variable .SavedPlots in which plots are stored has been moved from
455
package:base to the user's workspace.
456
 
23720 ripley 457
The warnings about changing the floating point control word are now
458
optional, selected by options(warn.FPU = TRUE).
22854 ripley 459
 
22864 ripley 460
The main thread is suspended briefly after Rprof() is called.  This
461
ensures that the timing thread gets started: on some builds and on
462
single-CPU machines this was not happening in 1.6.x (although it
463
did in 1.5.x, so it must be a compiler/runtime version issue).
464
 
22854 ripley 465
Installation changes
466
--------------------
467
 
468
The installers have new options under `Additional tasks' which allow
23720 ripley 469
the creation of Windows Registry entries to be de-selected by the user.
22854 ripley 470
 
471
Rcmd.exe and Rprof have been moved to the main distribution (although
472
to use them you will need perl installed).
473
 
23161 ripley 474
Tcl/Tk 8.4.1 is bundled in rw1070.exe.  You can still use your own
23826 ripley 475
installation of Tcl/Tk: see the rw-FAQ.
22854 ripley 476
 
23357 murdoch 477
The Makefiles that build the installers have been reorganized--see
478
the Maintainers.notes file for details, and INSTALL for new build
479
instructions.
480
 
22854 ripley 481
HTML help changes
482
-----------------
483
 
21618 ripley 484
The format of packages.html has changed, with packages listed by
485
library tree (as happens on Unix) when there is more than one tree.
21473 ripley 486
 
21876 ripley 487
The Java-based search index now covers all packages in all current
488
library trees.
489
 
21887 ripley 490
When using help.start() with more than one library tree, an attempt is
491
made to correct the URLs in non-standard libraries which point to the
21925 ripley 492
R_HOME/doc directory or to the base package.  Once this is done a
493
stamp `fixedHTMLlinks' is placed in the package directory, and
494
correction will only be done again if the R installation directory
495
is changed.
21887 ripley 496
 
22854 ripley 497
RGui changes
498
------------
22471 ripley 499
 
22854 ripley 500
The `Display file' menu item is now `Display file(s)' and allows
501
multiple file selection.
21568 ripley 502
 
22854 ripley 503
`Install packages from local zip files' from the `Packages' menu can
504
now install several files at once (by selecting multiple files in the
505
file selector).
22407 ripley 506
 
27308 ripley 507
Removed some calls to reset the size of the console, so it will
22854 ripley 508
stay maximized throughout window operations.
509
 
23057 ripley 510
The internal pager will page down with space or CTRL-F and page up
511
with minus or CTRL-B (key sequences which are widely used in Unix
23720 ripley 512
pagers).  CTRL-A selects all the text.
23057 ripley 513
 
23715 murdoch 514
The Change Directory dialog now starts in the current directory, not
515
always at the desktop.
516
 
23258 ripley 517
RTerm changes
518
-------------
519
 
520
Rterm is now only regarded as interactive if both stdin and stdout are
521
a terminal: this overcomes a problem with getline.
522
 
523
System error messages (those which would appear in a dialog box in
23295 ripley 524
Rgui) are written on stderr rather than stdout, as are R warnings and
23337 ripley 525
error mesages.  If you want to capture errors as well as normal output, use
526
something like
23258 ripley 527
 
23337 ripley 528
	...\rterm --vanilla <foo.in >foo.out 2>&1
529
 
22854 ripley 530
Installing packages
531
-------------------
532
 
23720 ripley 533
Binary packages are retrieved from the bin/windows/contrib/1.7
534
directory on CRAN, so each new version will have its own set of
23746 ripley 535
compatible packages.  The zip file names now include the version
536
number, as in mda_0.2-16.zip.
23720 ripley 537
 
22401 ripley 538
Files in the top-level directory of a source package are no longer
22471 ripley 539
installed automatically: files to be installed must be put in an `inst'
22481 ripley 540
sub-directory (as has long been recommended).  (The `demo' and `exec'
541
directories are also installed, as before.)
21580 ripley 542
 
22529 ripley 543
The BLAS library Rblas.dll is no longer automatically linked against
544
when building a package: as on Unix PKG_LIBS=$(BLAS_LIBS) is required
545
in Makevars(.win).
22401 ripley 546
 
23155 ripley 547
MD5 checksums are created on installation from sources (see
548
?checkMD5sums in package tools), and checked on installation by
23826 ripley 549
install.packages().  If you see mismatches, this may be because files
550
are left over from an earlier install of the package: try deleting the
551
whole package directory and re-installing.
22481 ripley 552
 
23720 ripley 553
There is a new command-line flag --auto-zip to Rcmd INSTALL which
554
selects whether to zip up the data and/or help directories depending
23826 ripley 555
on their size.  This is mainly for use with Rcmd INSTALL --build to
556
install and zip-up packages.
22854 ripley 557
 
23155 ripley 558
 
23720 ripley 559
 
21986 ripley 560
rw1062
561
======
562
 
22110 ripley 563
New functions read/writeClipboard() to read from or write to the clipboard.
564
 
22103 ripley 565
Hitting the key q (or Q) with an internal pager window in focus will
566
close the pager.
567
 
21986 ripley 568
Source packages with a DESCRIPTION file with an incomplete last line
569
are now repaired.
570
 
22103 ripley 571
Rcmd INSTALL tries to find canonical paths to make the check for
572
not installing on top of the source more foolprof.
21986 ripley 573
 
22103 ripley 574
The output when building R or source packages is much quieter.
21986 ripley 575
 
22203 ripley 576
Warnings are printed if a loaded DLL changes the floating point
577
control word: see ?dyn.load for the details.
22103 ripley 578
 
22235 ripley 579
Changed Windows README to README.rw1062, included standard README
580
and RESOURCES file in binary distribution.
22103 ripley 581
 
22573 ripley 582
Printing and copying from the menu of a graphics device now preserve
583
the active graphics device.
22203 ripley 584
 
22614 ripley 585
Fixed a crash that occurred when an attempt was made to view a file in
27308 ripley 586
the pager but the file could not be opened (e.g. because another
22614 ripley 587
application had it opened with exclusive access).
22235 ripley 588
 
22270 ripley 589
 
22705 ripley 590
 
21472 ripley 591
rw1061
592
======
593
 
21484 murdoch 594
Changed titles on help windows so topic name shows when minimized.
595
 
21472 ripley 596
Dependencies were not being generated properly in packages using C++.
597
 
21506 ripley 598
share/R/firstlib.R was not being included in the binary distribution.
21472 ripley 599
 
600
 
21506 ripley 601
 
19859 ripley 602
rw1060
603
======
604
 
21192 murdoch 605
The installer program name has changed from SetupR.exe to rw1060.exe.
606
 
20628 ripley 607
The miniR distribution has grown to eight floppies, and the zip files
608
are no longer distributed on CRAN.
609
 
21115 ripley 610
The default memory limit has been raised to the smaller of 1Gb and the
611
amount of physical RAM.  (See the changes for rw1040 and rw1020 below.)
20730 ripley 612
 
20132 ripley 613
Support for bzip-ed connections has been added to the standard distribution.
19859 ripley 614
 
20628 ripley 615
update.packages() and install.packages() will not try to install a package
616
that is in use (with an informative warning).
19859 ripley 617
 
20765 ripley 618
Using HTML help has changed slightly: in particular
619
help(htmlhelp=TRUE) makes use of the setting of options("browser").
620
 
21115 ripley 621
Ctrl-Z in Rgui or Rterm will signal EOF, and so can be used to
20824 ripley 622
terminate a read by readLines() or scan(), for example.
623
 
21024 ripley 624
bmp(), png(), jpeg() and win.metafile() devices can plot multiple
625
pages in separate files.
626
 
20618 ripley 627
The preferred compiler is gcc-3.1: gcc-2.95.3 can still be used but
20765 ripley 628
up-to-date header files are needed.
20032 ripley 629
 
21115 ripley 630
Making packages containing source code automagically makes dependency
631
information for C and C++ code: this is useful when experimenting with
20132 ripley 632
packages, and especially for the packages which ship with R.
20032 ripley 633
 
20243 ripley 634
 
635
 
19531 ripley 636
rw1051
637
======
638
 
639
file.rename() (which is by default used when saving workspaces) now
640
uses Windows API rather than ISO C functions.  This works around a
641
reported problem with Windows thinking a file was in use, and on
642
NT/2000/XP machines makes renaming an atomic operation (rather than
643
delete followed by move).
644
 
645
Bulding the standalone Rmath.dll was not making the import library
646
libRmath.a.
647
 
19840 ripley 648
We may have been able to track down (to the isprint routine) the cause
20233 ripley 649
of the FAQ Q2.14 about crashes caused by non-ASCII characters, and
19596 ripley 650
hence to circumvent it.
19531 ripley 651
 
19596 ripley 652
File | Print on the menu of a windows() graphics device was not working.
19531 ripley 653
 
19891 ripley 654
The binary distribution could not make packages which needed to link
19940 ripley 655
to Rblas.dll.
19596 ripley 656
 
657
 
19891 ripley 658
 
17488 ripley 659
rw1050
660
======
661
 
19113 ripley 662
There are few new Windows-specific features in this release: it has
663
been tuned to work better with Windows XP and a number of workarounds
664
added.
19101 ripley 665
 
666
 
19110 ripley 667
win.print() allows a printer to be specified.
668
 
19113 ripley 669
help.start(browser=) is now supported: this may be useful if the
670
default browser does not support the Java-based search engine.
671
 
18400 ripley 672
Very small circles are now forced to be visible: not all Windows
673
versions would display them.
674
 
18312 ripley 675
Transparency in png() is now supported on `High Color' (16-bit) screens.
676
 
19174 ripley 677
Changing plot resize type via the menu now works better for the current
678
plot (which is immediately redrawn).
679
 
19336 ripley 680
BLAS support is now in a separate DLL, Rblas.dll.  This means that
19136 ripley 681
packages using BLAS (KernSmooth, Matrix, bqtl, fracdiff, gss,
682
odesolve, quadprog, quantreg and subselect amongst those on CRAN) need
683
to be re-built.  The advantage is that less space is taken up overall,
684
and ATLAS can be used just by rebuilding Rblas.dll.
17488 ripley 685
 
18489 ripley 686
The installers now use bzip2 compression, so make smaller packages.
17542 ripley 687
 
17495 ripley 688
Cross-building automatically uses STAMP=NO for packages.
17488 ripley 689
 
17913 ripley 690
R and packages can now be built in a directory whose path contains
691
spaces (although we still don't recommend it).
17488 ripley 692
 
18581 ripley 693
If a package contains a script `configure.win' it will be run at the
694
start of installation.
695
 
17809 ripley 696
Rcmd INSTALL and make pkg-foo test for attempted installation into the
697
source directory.
17495 ripley 698
 
17913 ripley 699
All the configuration options are now in file MkRules.
17532 ripley 700
 
18105 ripley 701
Unzipping is now handled by internal code based on zlib: unzip.dll is
702
no longer required.
17809 ripley 703
 
19101 ripley 704
Launching HTML files from the menus was not working with Netscape 6.2.x,
18082 ripley 705
so a workaround has been provided.
706
 
707
Rgui.exe.manifest has been added to get XP-style widgets on Windows XP.
708
 
709
Some logical colour names have been changed to get consistent colour
710
schemes on Windows XP.
711
 
18176 ripley 712
The books in the contents of CHTML for packages were not being sorted
713
correctly.
18082 ripley 714
 
19336 ripley 715
The floating-point control setting has been changed to use 64-bit
716
rather than 53-bit mantissas, which will result in slightly
717
different but generally more accurate results.
18082 ripley 718
 
18176 ripley 719
 
19336 ripley 720
 
17514 ripley 721
rw1041
722
======
723
 
21959 ripley 724
Updating HTML indices, e.g. in help.start(), is done within a
17786 ripley 725
try() construct.
17700 ripley 726
 
17727 ripley 727
help.start() has a new argument `update'.
17700 ripley 728
 
17514 ripley 729
Making packages now warns if there is a configure script.
730
 
17727 ripley 731
ga.h was needed for building package `windlgs', but was omitted from the
18040 pd 732
`source package' code for rw1040.  It is now included.
17514 ripley 733
 
17923 ripley 734
Rcmd check was failing on Windows 9X, because additions in 1.4.0 were
735
not using Rsystem().
17514 ripley 736
 
17727 ripley 737
 
17923 ripley 738
 
15414 ripley 739
rw1040
740
======
741
 
16538 ripley 742
If --max-mem-size is given a value greater than 256M, the requested
743
maximum memory is reserved (but not allocated) initially.  This will
744
enable the memory to be managed more efficiently, but does increase
16874 ripley 745
the chance that R cannot be started.  There appears to be an effective
746
limit of about 1700M, at least under Windows 2000.
16538 ripley 747
 
748
memory.limit() can now increase the memory limit of the current session.
749
This will not work if the limit is currently reached!
750
 
17727 ripley 751
internet2.dll (see changes for rw1030) must be selected by the
18040 pd 752
--internet2 flag.
16578 ripley 753
 
17075 ripley 754
The miniR* distribution has grown to seven floppies, and no attempt is
755
now made to confine the zip files to floppy-size.
16408 ripley 756
 
15657 ripley 757
The background colour of a windows() window (outside the device
758
region) is now in the `Application Background' colour of the current
15802 ripley 759
Windows colour scheme.  (It used to be LightGrey.)
15414 ripley 760
 
15657 ripley 761
Gamma correction is now applied to the background colour of a graphics
762
window.  (It has long been applied to the foreground colours.)  Users
16874 ripley 763
of LCD screens may want to set something like gamma=2 when launching a
764
graphics window.
15414 ripley 765
 
15657 ripley 766
savePlot() now supports saving to PDF.
767
 
768
There is support for transparency in the devga device (which
769
encompasses screen windows, metafiles, printers and the bmp, jpeg and
17322 ripley 770
png devices).  The default background colour is "transparent" for all
15657 ripley 771
but the bitmap devices: this means that backgrounds are omitted when
17322 ripley 772
plotting to/saving to most devices, and the colour that is visible is
773
that of the canvas (see below).  The png() device does support
774
transparent backgrounds, but this is not accessible through the menus
775
nor the savePlot() function.
15657 ripley 776
 
17322 ripley 777
The canvas colour of a windows() window can now be specified.  This is
778
is gamma-corrected, and defaults to "white".
779
 
17132 ripley 780
There is a print method for saved plot histories, and individual
781
plots can be replayed from the command line by subsetting a
782
plot history variable.
783
 
17245 ripley 784
The menus use `...' to indicate that they lead to a dialog box.
785
 
786
There is a new menu item  `Edit | Data editor...'  to edit (via fix())
787
R objects, especially data frames and matrices.
788
 
16874 ripley 789
The console pop-up was checking the wrong item for `Buffered output'.
790
 
17156 ripley 791
Plot histories are saved in a different format: those from earlier
792
versions of R cannot be played back and will be reported as corrupted.
793
 
16874 ripley 794
Installing a package now first removes the data and demo directories
795
if they exist.
796
 
15896 ripley 797
Building under (repaired) Cygwin -mno-cygwin environments is no longer
16835 ripley 798
supported.  You probably do need the compiler system recommended for
799
rw1031 or later.
15657 ripley 800
 
16874 ripley 801
globalvar.h is no longer used: the header files now declare imported
802
variables.  This make it essential to use the R header files rather
803
than copying entries from them.
15965 ripley 804
 
17257 ripley 805
A bug in some linkers in linking against ATLAS has been circumvented.
806
There is now a bigger benefit in using ATLAS: on a PII with a
807
1000x1000 matrix, svd took 288 sec and La.svd 182 sec (without ATLAS)
808
and 59 sec (with); eigen took 163 sec and La.eigen 53 sec (without)
809
and 24 sec (with).
15965 ripley 810
 
16680 ripley 811
 
17257 ripley 812
 
15168 pd 813
rw1031
814
======
815
 
15268 ripley 816
Lines with lty > 1 and many pieces were being drawn very slowly on
817
Windows 2000 (but not 98/ME).  To work around this, such lines are
818
now drawn 5000 pieces at a time.
819
 
15394 ripley 820
The dialog for the `Change dir' item now uses a standard folder
821
selection widget for its Browse button.
15268 ripley 822
 
15394 ripley 823
White backgrounds are now omitted for metafiles (as they are for
824
postscript, PDF and XFig plots), so white backgounds (the default)
825
appear to be transparent.
826
 
15168 pd 827
help.start() now updates the HTML search index (as well as the
15268 ripley 828
packages index) when it is started up.  link.html.help() works better
829
when R_LIBS omits the drive, and uses relative links for the main
830
library, so R installations can be relocated in the file system.
15168 pd 831
 
15714 ripley 832
The background colour of the GUI preferences editor and the
833
select.list() popup is now taken from the Windows colour scheme.
834
 
15168 pd 835
Rcmd INSTALL now rejects invalid options for --docs (rather than
15268 ripley 836
ignoring them), and checks for the R version in the DESCRIPTION file
837
exactly the same way as Rcmd check (so with fewer spurious messages).
15168 pd 838
 
15268 ripley 839
Added support for building with the ATLAS optimized BLAS library: on a
840
PII this speeds up La.svd on a 500x500 matrix by about 30%, and the
841
multiplication of two 1000x1000 matrices by about 8x. See INSTALL.
15168 pd 842
 
15461 ripley 843
The recommended compiler system has been changed, but that recommended
15316 ripley 844
for rw1030 still works.
15168 pd 845
 
15268 ripley 846
 
15316 ripley 847
 
13639 ripley 848
rw1030
849
======
850
 
14753 ripley 851
SetupR.exe and miniR* now include the nine `recommended' packages,
852
so the miniR* distribution needs six floppies rather than four.
13825 ripley 853
 
14489 ripley 854
Rgui has a new menu `Packages' with items to load packages, to install
13876 ripley 855
packages from CRAN or from local zip files, and to update packages.
13639 ripley 856
 
14462 ripley 857
The packages list shown by help.start() now includes all packages in
858
all libraries, but the search index is still confined to the system
14353 ripley 859
library.
13639 ripley 860
 
14489 ripley 861
The installers set up a file association for *.RData files, so
14559 ripley 862
double-clicking on a *.RData file launches R in that directory and
863
loads the *.RData file.  Also, a *.RData file can be dropped onto a
14753 ripley 864
shortcut to Rgui (or Rterm) on the desktop or in Windows Explorer.
14086 ripley 865
 
14278 ripley 866
Drag-and-drop of images (.RData and .rda) and source files (.R)
14462 ripley 867
onto the Rgui.exe console window is now supported.
14086 ripley 868
 
14559 ripley 869
Profiling (as described in `Writing R Extensions') is now available.
13639 ripley 870
 
14462 ripley 871
There is a new `Save as PDF' option on the graphics device menu.
13639 ripley 872
 
14764 ripley 873
bringToTop() can specify the console window in Rgui (as -1).
874
 
14718 ripley 875
The default graphics device is now windows() only in interactive use:
876
otherwise it is postscript().  (This affects the DCOM interface, which
877
is not interactive use.)
878
 
14462 ripley 879
Support for earlier (pre-Feb 2000) mingw compilers has been dropped:
880
you must use a compiler system that supports --shared and has an
881
in-memory dlltool.
882
 
14647 ripley 883
Rcmd check has been changed to be more robust to reported problems
884
with Perl's system() command under 16-bit versions of Windows.  It now
14661 ripley 885
works for us under Windows 98.  (It has always worked under NT4 and
886
2000.)
14462 ripley 887
 
14489 ripley 888
Rcmd SHLIB no longer adds a version tab to the DLL, as this seemed to
14753 ripley 889
cause some people problems under Windows 95/98/ME.
14489 ripley 890
 
14462 ripley 891
The correct file version information should now appear on Windows 2000
892
Version tab under Properties (working around a Windows 2000 bug).
893
 
14011 ripley 894
rwinst.exe is no longer part of the distribution: use the newer
14559 ripley 895
installers to install R, and the Packages menu in Rgui.exe to install
14753 ripley 896
pre-compiled packages, or use an external unzip program.
13931 ripley 897
 
13825 ripley 898
The old-style Windows help is no longer part of the standard distribution,
14753 ripley 899
but can be made from the sources.  It is no longer tested.
13639 ripley 900
 
14764 ripley 901
Make targets such as test-Reg have been moved to directory rw1030\tests.
13639 ripley 902
 
22766 ripley 903
[ DO NOT DO THIS: see ?download.file or rw1040 above:
14679 ripley 904
The default internet module modules\internet.dll is built using basic
905
WinSock calls.  There is an alternative modules\internet2.dll which uses
906
WinInet calls (and so needs Internet Explorer installed) which can be
15168 pd 907
used as a replacement.  (Remove modules\internet.dll and then
22766 ripley 908
rename modules\internet2.dll to modules\internet.dll.)]
13825 ripley 909
 
14559 ripley 910
 
21959 ripley 911
 
13186 pd 912
rw1023
913
======
914
 
13340 ripley 915
Alternative installers based on Inno Setup 2.0.x, either SetupR.exe or
13633 ripley 916
miniR* (which fits on four floppies).
13186 pd 917
 
13340 ripley 918
The location of R_HOME and the version can optionally be recorded in
13485 ripley 919
the Registry (and will be used by the DCOM interface).  The Inno Setup
920
installers register the installation, and unregister on
921
uninstallation.  rwinst.exe has an option to register.  Program
922
rw1023\bin\RSetReg.exe will register, and rw1023\bin\RSetReg.exe /U
923
will unregister.
13340 ripley 924
 
13186 pd 925
The windows() device no longer rounds width and height to the nearest inch.
926
 
13633 ripley 927
You can override the settings Windows reports for pixels per inch
928
(sometimes it is seriously adrift).  See ?windows.
929
 
13263 ripley 930
File `extract-usage' needed for codoc was missing from rw1022sp.zip.
13186 pd 931
 
13263 ripley 932
The default memory limit (as reset by --max-mem-size) is set to at
13578 ripley 933
least 16Mb, to allow R to start on machines with 8Mb of RAM.
13186 pd 934
 
13233 ripley 935
link.html.help() has been re-written using connections and so is
936
several times faster.
13186 pd 937
 
13263 ripley 938
Rcmd INSTALL now allows Windows-style paths to a tar file.
13233 ripley 939
 
13365 ripley 940
rproxy.dll is now built for StatConnector version 0.99: earlier versions
941
are no longer supported.
13233 ripley 942
 
13464 ripley 943
A Windows-specific bug in bitmap() which caused output to appear twice
944
has been fixed.
13263 ripley 945
 
13485 ripley 946
Rcmd check now stops when package-specific tests fail (not just
947
reports on the console).
13365 ripley 948
 
13485 ripley 949
 
950
 
12778 pd 951
rw1022
952
======
12690 ripley 953
 
12778 pd 954
The long-running saga of importing R metafiles into Word is over;
955
lines are now visible in screen previews in Word.  It was necessary to
956
use `geometric' rather than `cosmetic' pens to achieve scalable line
957
widths in metafiles: Word was failing to show lines drawn with
958
`cosmetic' pens.
959
 
960
bringToTop() now works with MDI child windows as well as SDI windows.
961
 
962
Rcmd build/check use a different check for a directory, to work around
963
a bug in (some versions of) Windows Perl.
964
 
965
The datetime code has been modified to work around a problem reported
966
on a Win98 machine which caused times to be reported in GMT.  (This
967
seems a bug in a particular version of msvcrt.dll and few machines
968
were affected.)  A side-effect of the changes is that the timezone
969
names reported are usually more sensible (but sometimes less).
970
 
971
File etc/Makeconf-tests was missing from rw102Xsp.zip.
972
 
973
Rcmd SHLIB now supports compilation from C++ sources.
974
 
12976 pd 975
Rterm now saves and resets the console window title.
12778 pd 976
 
12976 pd 977
On Win2k, system(intern=TRUE) was failing to reset stderr to the console.
12895 ripley 978
 
12976 pd 979
 
980
 
12256 pd 981
rw1021
982
======
983
 
984
Pipe connections now work under RGui and embedded R.dll, although
985
slower than under Rterm, and as they run with no stdin or stdout to
986
inherit what you can do with them is limited.  They work better for
987
reading than writing.
988
 
989
The installer will no longer crash trying to install addons with a
990
long PATH and R_HOME not set.  Similarly, Rcmd accepts long paths.
991
 
992
Using Rcmd INSTALL with an incorrect path specification ending in \ no
993
longer runs amok.
994
 
995
Internal pager no longer fails when given a file of one line and no
996
line ending.
997
 
998
Hyperlinks to other packages in CHTML files launched by help() will
999
now work irrespective of the working directory (but like HTML, only
1000
to packages in the same library).  The .chm files do need to be
1001
re-built under this version.
1002
 
1003
help(, winhelp=TRUE) will now find alias topics as well as main items.
1004
 
1005
Hitting the total memory allocation limit set by --max-mem-size will
1006
give a warning (and will usually also lead to an error, and that may
1007
suppress printing out the warning).
1008
 
1009
There is a new make target test-Reg to run the regression tests (which
1010
now do I/0, so might give different results on Windows).
1011
 
1012
Rcmd build with the latest tar.exe will exclude files as intended.
1013
 
1014
There are further improvements in the GUI console receiving output
1015
(e.g. from tcltk interactive functions) during input.  If you can,
1016
arrange to send output in a single piece, or at least a whole line at
1017
a time (although partial lines will now work).  For example, don't use
1018
print() but capture the output in a text connection and use something
1019
like cat(paste(outlines, "", collapse="\n)) to output a single string.
1020
 
1021
The initial rescaling is no longer done for windows(rescale="fixed"),
1022
and the scrollbars in that mode are more responsive but move the
1023
viewport 20 pixels at a time.
1024
 
1025
 
12895 ripley 1026
 
9837 ripley 1027
rw1020
1028
======
1029
 
10659 ripley 1030
This version has been compiled against msvcrt.dll not crtdll.dll.
10988 ripley 1031
This gives small speed increases and generally more accurate results.
10659 ripley 1032
Packages compiled against crtdll.dll will still work (as far as we are
11588 ripley 1033
aware), but for best results should be re-compiled.  (A few packages
11699 ripley 1034
need to be re-compiled for 1.2.0 on all platforms, and any that used
11609 ripley 1035
malloc directly need to be recompiled on this one.)
9837 ripley 1036
 
1037
 
21959 ripley 1038
This release has a number of changes to bring its behaviour closer to that
10485 ripley 1039
of Unix versions of R.
10228 ripley 1040
 
11813 ripley 1041
-   The default font for graphics on windows(), win.printer() and
1042
    win.metafile() devices is now Arial: the font numbers for the
1043
    Times New Roman and Arial families have been interchanged.
11329 ripley 1044
 
10504 ripley 1045
-   The history is only saved when the workspace is (to be compatible with
10485 ripley 1046
    Unix versions of R) and whether it is restored is controlled by
10659 ripley 1047
    option --no-restore-history (implied by --no-restore and --vanilla):
1048
    the default remains to restore.
9859 ripley 1049
 
10485 ripley 1050
-   Environment variables R_HISTFILE and R_HISTSIZE can be set to specify
1051
    the name of the commands history file (default .Rhistory)
1052
    and its maximum size (in lines, default 512).
9859 ripley 1053
 
10485 ripley 1054
-   More locale support is now enabled where supported by the version of
10504 ripley 1055
    Windows in use.  It means that sorting and comparison of character
1056
    strings will be locale-specific.  You may not want this (the sort
1057
    order in `English_United Kingdom' is aAbB..., for example) and
1058
    setting Sys.setlocale("LC_COLLATE", "C") should give the previous
11031 ripley 1059
    behaviour.  Further, users of Windows 9x/ME should be able to use
1060
    their native character set for the names of R objects (as NT/2000
11091 ripley 1061
    users always have: this is caused by the change to msvcrt.dll).
11031 ripley 1062
    (For the benefit of those used to Unix, LC_ALL can be set in the
10659 ripley 1063
    environment, although this is not usually supported by Windows,
1064
    and setting individual LC_* such as LC_COLLATE will also work.)
9946 ripley 1065
 
21959 ripley 1066
-   It is possible to make DVI and HTML versions of the manuals:
10942 ripley 1067
    see file INSTALL in the source distribution.
9984 ripley 1068
 
10485 ripley 1069
-   New utility Rcmd.exe to emulate R CMD : see below.
10348 ripley 1070
 
10659 ripley 1071
-   unlink() now works the same way on Windows and Unix.  Thus on
1072
    Windows it no longer deletes empty directories, but has a new
1073
    argument recursive=TRUE to delete directories (empty or not).
10367 ripley 1074
 
11780 ripley 1075
-   The startup code looks for .Renviron, a file pointed to by
11533 ripley 1076
    environment variable R_ENVIRON and then .Renviron in the home
11813 ripley 1077
    directory.  This file can contain lines of the forms NAME=value
1078
    and NAME=${NAME1-value} to take the value of NAME1 if set (and not
11533 ripley 1079
    empty), otherwise `value'.
10504 ripley 1080
 
11588 ripley 1081
-   make check no longer makes R, just runs the tests (as make test
1082
    always has).  Tests are run in the C locale.
11533 ripley 1083
 
11588 ripley 1084
 
10485 ripley 1085
Gui changes
1086
-----------
9837 ripley 1087
 
10485 ripley 1088
-   There are new console menu items `Load History' on the File menu and
1089
    `Clear console' on the Edit menu. (The current line is not cleared.)
9837 ripley 1090
 
10485 ripley 1091
-   The menu items `Load/Save Image' are now called `Load/Save Workspace'.
1092
 
1093
-   The Print menu item on the File menu of a console or pager now prints
10659 ripley 1094
    the selection if there is one, and the whole (saved) contents otherwise.
10485 ripley 1095
 
11031 ripley 1096
-   There is a new `Save to File' item on the File menu of a console or
1097
    pager which saves the selection if there is one, and the whole
1098
    (saved) contents otherwise.
10976 ripley 1099
 
11031 ripley 1100
-   The Rgui console now uses the same history mechanism as Rterm. The
10485 ripley 1101
    history limit is now just on the number of lines (rather than on the
1102
    number of lines and the total size).  The mechanism has been altered
1103
    so that Rterm records repeated lines (as Rgui always did).
1104
 
11518 ripley 1105
-   There are some additional command-line editing commands in Rgui: see
1106
    the Help | Console information screen.  (There is also one
1107
    addition, ^W, in Rterm: see README.rterm.)
10485 ripley 1108
 
10976 ripley 1109
-   Selection works slightly differently: if the selection extends beyond
1110
    the last character on the line the (invisible) CRLF is made part of
1111
    the selection, but not if only up to the last character is selected.
10485 ripley 1112
 
11073 ripley 1113
-   The data editor is no longer modal (which seems not to have worked
1114
    properly in the GraphApp toolkit) and this allows its popups to be
1115
    modal.
10976 ripley 1116
 
11588 ripley 1117
-   The size of the console scroll buffer can be set in file Rconsole,
1118
    and resized (upwards) via the GUI preferences editor.
11073 ripley 1119
 
11813 ripley 1120
-   The GUI console copes much better with receiving output (e.g. from
1121
    tcltk interactive functions) during input.
11588 ripley 1122
 
1123
 
11813 ripley 1124
 
10530 ripley 1125
New utilities for preparing packages
1126
------------------------------------
10485 ripley 1127
 
10530 ripley 1128
    There are several new utilities in the rw1020sp.zip distribution.
1129
 
10485 ripley 1130
    The utilities Rd2dvi.sh Rd2txt Rdconv Rdindex Sd2Rd are no longer
1131
    batch files but accessed through a new front-end Rcmd.exe, so if this
10504 ripley 1132
    is in your path (otherwise use ...\rw1020\bin\Rcmd) you can use
10485 ripley 1133
 
10003 ripley 1134
	Rcmd Rd2dvi.sh [options] files
1135
	Rcmd Rd2txt              file
1136
	Rcmd Rdconv    [options] file
1137
	Rcmd Rdindex   [options] files
1138
	Rcmd Sd2Rd     [options] file
9984 ripley 1139
 
10530 ripley 1140
    There are new utilities INSTALL, REMOVE, SHLIB which can be used
1141
    to install a source package, remove a package and make a DLL, and
11031 ripley 1142
    implementations of the Unix R utilities BATCH, build and
10530 ripley 1143
    check. Invoke these by
9984 ripley 1144
 
10003 ripley 1145
	Rcmd INSTALL [options] pkgdir(s)
1146
	Rcmd REMOVE  [options] pkg(s)
1147
	Rcmd SHLIB   [options] file(s)
1148
	Rcmd build   [options] pkgdir(s)
10504 ripley 1149
	Rcmd check   [options] pkgdir(s)
1150
	Rcmd BATCH   [options] infile [outfile]
9984 ripley 1151
 
10485 ripley 1152
    Use option --help with any of these for fuller details.
9984 ripley 1153
 
1154
 
10858 ripley 1155
The default for options("papersize") is set according to the locale,
11073 ripley 1156
and so might be set to "letter" under US or Canadian versions of
10858 ripley 1157
Windows.
1158
 
10485 ripley 1159
Rterm in interactive use sets the title of the window it is running
1160
in, and unsets it when it terminates.
1161
 
11091 ripley 1162
The Windows memory manager proved to be (far) too slow to work with
1163
the new generational garbage collector, so it has been replaced.  The
1164
current memory manager rarely releases memory back to Windows (but
1165
reuses memory very efficiently) so total memory usage will often grow
1166
slowly over the course of a session.  Memory used for transient large
1167
objects will normally be returned at garbage collection.  (Once memory
1168
usage has gone over the 256Mb of address space that is initially
1169
reserved, it is unlikely to be reduced much, but the allocated memory
11813 ripley 1170
will be reused.)  You can compile R to use the Windows memory manager
1171
if you need to.
10485 ripley 1172
 
11091 ripley 1173
New function memory.size() showing the amount of memory currently in
1174
use or the maximum that has been used.
1175
 
11168 ripley 1176
New command-line option --max-mem-size to set the maximum memory
1177
allocation: it has a minimum allowed value of 10M.  This is intended
1178
to catch attempts to allocate excessive amounts of memory which may
1179
cause other processes to run out of resources.  The default is the
1180
smaller of the amount of physical RAM in the machine and 256Mb.
11007 ripley 1181
 
10256 ripley 1182
DLLs for packages (including standard packages supplied with R)
10530 ripley 1183
automatically gain version information when compiled under this
1184
version.  (Use the Version tab on the Properties dialog box to see it,
11518 ripley 1185
or the new function DLL.version() within R.)
10256 ripley 1186
 
10541 ripley 1187
Windows (.hlp) help files now have hyperlinks to other objects within
1188
the same package.
10256 ripley 1189
 
10541 ripley 1190
The windows() graphics device has a new argument `record' to set the
10659 ripley 1191
initial state of the recording flag, and this defaults to the setting
1192
of the option "graphics.record" (and that defaults to FALSE).
10426 ripley 1193
 
11597 ripley 1194
The windows() graphics device has new options for what happens when it
11813 ripley 1195
is resized, which can be set from the command line of from the menu.
1196
See ?windows for details.
11597 ripley 1197
 
1198
New function bringToTop() to bring a graphics window to the top of the
1199
windows stack (useful from menu actions, ...).
1200
 
11031 ripley 1201
If the options setting for a pager or editor (or the editor argument
1202
to edit.default) is a path containing a space, it is automatically
10659 ripley 1203
quoted if not already quoted.
10541 ripley 1204
 
10988 ripley 1205
The range of allowed text sizes in a windows/win.print device has been
10659 ripley 1206
increased, so smaller values of cex will work.  (The smallest allowed
1207
text size is 2pt not 8pt.)
1208
 
21959 ripley 1209
Interactive use of Rterm.exe on Windows 2000 systems is now possible
10988 ripley 1210
(including under ESS).
10659 ripley 1211
 
11031 ripley 1212
Better rendering of wide (lwd > 1) and dashed (lty != "solid") lines
1213
on the windows/win.print device.
10981 guido 1214
 
11518 ripley 1215
The installer rwinst.exe when first asked to install a package tries
11091 ripley 1216
to find a current installation of R, first from R_HOME if set in the
1217
environment, then from the PATH (it looks for ...\rw1020\bin).
10988 ripley 1218
 
11699 ripley 1219
make pkgcheck-foo will unzip zipped example files if needed.
11073 ripley 1220
 
1221
 
11699 ripley 1222
 
9687 pd 1223
rw1011
1224
======
1225
 
9885 ripley 1226
New file README.Rterm providing basic documentation on Rterm.exe.
1227
 
9687 pd 1228
undoc() is now available under Windows.
1229
 
1230
There is a new script R_HOME/bin/build.sh, a version of R CMD build.
10089 ripley 1231
You will need R_HOME set as an environment variable to use it, and you
1232
will need the full set of tools from tools.zip (see readme.packages)
1233
in your path.
9687 pd 1234
 
9837 ripley 1235
The batch wrappers to Perl files Rdconv.bat Rdindex.bat Rd2txt.bat
1236
Sd2Rd.bat have been revised to work on more Perl/OS versions.
1237
 
1238
Setting cell widths from the menu in the data editor now works reliably.
9687 pd 1239
 
9837 ripley 1240
Having an empty line at the beginning of .Rhistory no longer breaks the
1241
history-recall mechanism in Rgui.
9687 pd 1242
 
9859 ripley 1243
Characters using the AltGr key now work in interactive use of Rterm.
1244
(AltGr used to work like Alt.)
9837 ripley 1245
 
10217 pd 1246
Ctrl+V now works as described in a pager (pasting to the console).
1247
 
21959 ripley 1248
Other versions of Tcl/Tk may be used by setting TCL_VERSION in
11091 ripley 1249
MkRules (but only 8.31 and 8.32 have been tested).
10217 pd 1250
 
9885 ripley 1251
A file Makevars.win in the src directory of a package will be used in
1252
preference to a file Makevars.
9859 ripley 1253
 
10003 ripley 1254
The Makefiles for packages now allow C++ code (with extension .cc or
1255
.cpp or .C) in the src directory.
9885 ripley 1256
 
10089 ripley 1257
If you use a private library and HTML help, you need to copy R.css
1258
from rw1011\library to each private library directory.
9885 ripley 1259
 
10089 ripley 1260
Function win.version() should give slightly more information (the
1261
latest service pack number x.y) on Windows 2000.
1262
 
1263
 
1264
 
8630 ripley 1265
rw1010
1266
======
1267
 
9048 ripley 1268
There is now a GUI preferences editor on the Edit menu in Rgui.
8630 ripley 1269
 
9054 ripley 1270
A data entry editor is now implemented.  This is similar to the Unix
9273 ripley 1271
one (see ?dataentry: that has itself been considerably enhanced in
9353 ripley 1272
parallel with the Windows version) with the additional features that
9273 ripley 1273
double-clicking in a cell turns it into an editable field (entered as
1274
a new value by navigating away from the cell), and there is a
1275
right-click popup menu.
9044 ripley 1276
 
9059 ripley 1277
Rterm will now load and save the commands history (as Rgui does).
1278
There is a new item on the File menu in Rgui to save the commands
1279
history at that point in a session, and a new function savehistory()
1280
(only applicable in Rgui and Rterm).
1281
 
21959 ripley 1282
Colours in Rconsole can be specified as "Windows" and will be taken
9048 ripley 1283
from the current Windows colour scheme. (The preferences editor will
1284
save the actual colour, though.)
1285
 
9059 ripley 1286
The placement of multiple pagers is now `random' (so they will not
9353 ripley 1287
always appear in the exact centre of the screen) and under the MDI
1288
interface the pager rows and columns settings are now used.
9059 ripley 1289
 
8701 ripley 1290
The postscript() device can now spool plots to a printer. You will
8991 ripley 1291
need a suitable program to send a file to the spooler (or even to send
8706 ripley 1292
it to ghostscript to interpret PostScript for the printer): the RedMon
9353 ripley 1293
suite available from http://www.cs.wisc.edu/~ghost/rjl.html and
1294
GhostScript distribution sites should provide suitable tools.  See
1295
?postscript for further details.
8659 ripley 1296
 
8924 ripley 1297
The new xfig() device can be used, and a port of xfig to Windows (with
8991 ripley 1298
an X server and the Cygwin B20.1 environment and X11R6.4 installed) is at
8924 ripley 1299
ftp.franken.de:/pub/win32/develop/gnuwin32/cygwin/porters/Humblet_Pierre_A/B20
9182 ripley 1300
as  xfig-3.2.2-cygwin-b20.1-bin.tar.gz.
8707 ripley 1301
 
9373 ripley 1302
The R DLL and executables now contain standard Windows version
9059 ripley 1303
information, which will appear on a Version tab of the Properties
1304
dialog box in Explorer.
1305
 
8991 ripley 1306
The internal unzip and the installer now use unzip5.41, not unzip5.40, and
1307
the DLL interface is incompatible.
8924 ripley 1308
 
9059 ripley 1309
There are changes in the tools needed to build R (see the file INSTALL)
1310
and those recommended for building packages from source (see the file
9373 ripley 1311
readme.packages).
8991 ripley 1312
 
9059 ripley 1313
New makefile target zipdata-% to zip up data directories in packages.
8959 ripley 1314
 
9360 ripley 1315
If there is a file `Makefile.win' in a package src directory this
1316
will be used rather than MakePkgs (and the tcltk package provides
1317
an example).
1318
 
9185 ripley 1319
There is an example package `windlgs' in the package sources
1320
distribution that shows how to use graphapp to build dialog boxes to
1321
be called from menus, with a worked example of a t test done in three
1322
ways.  More details of graphapp, including a tutorial and a reference
9687 pd 1323
manual, are at http://www.cs.usyd.edu.au/~loki/graphapp.
9185 ripley 1324
 
9353 ripley 1325
Optional support for the Tcl/Tk interface.  To use this you need to
1326
install tcl831.exe from dev.scriptics.com, and you will need the Tcl
1327
and Tk dlls in your path.  Also, you need to set the environment
1328
variable TCL_LIBRARY, to something like c:/Program Files/Tcl/lib/tcl8.3.
9502 ripley 1329
The demos(tk*) will work on Windows.
9353 ripley 1330
 
9419 ripley 1331
The R mathematical functions can now be built as a DLL for use
9502 ripley 1332
with your own C programs.  See  src/nmath/standalone/README in the
9419 ripley 1333
sources.
1334
 
9273 ripley 1335
Rdconv.bat no longer depends on having a Unix-compatible `cat' program
1336
in your path.
9185 ripley 1337
 
9182 ripley 1338
A long-standing bug in the (vertical) alignment of symbols in plotmath
1339
has been corrected.
8959 ripley 1340
 
9182 ripley 1341
Pagers should no longer flash when launched.
1342
 
9373 ripley 1343
Launching a pager or data editor or graphics window now brings it
1344
to the front, even from Rterm.exe. (Not for Tcl/Tk windows, unfortunately.)
9182 ripley 1345
 
9448 ripley 1346
Failure to load a DLL with dyn.load now gives extended error information.
9373 ripley 1347
 
9448 ripley 1348
 
1349
 
8505 pd 1350
rw1001
1351
======
1352
 
8706 ripley 1353
The installer, rwinst.exe, now checks for ZIP files as well as zip files,
1354
as some browsers manage to map filenames to uppercase.
8505 pd 1355
 
8764 ripley 1356
There are batch files  Rd2txt.bat Rdconv.bat Rdindex.bat Sd2Rd.bat
1357
which are the equivalent of the Unix `R CMD foo' utilities mentioned in
1358
`Writing R Extensions'.  To use these you must have R_HOME set as an
1359
environment variable (using the form P:/R/rw1001).  There is also a
1360
shell script Rd2dvi.sh which you can use if you have sh.exe (as
1361
used to compile packages) and latex etc. The environment variable
1362
XDVI sets the previewer, defaulting to xdvi.bat.
1363
 
1364
A file `Makevars' in the `src' directory of a package can be used to
1365
add to/override the MakeDll makefile used to make foo.dll, as on Unix.
1366
(See `Creating shared libraries', section 3.4 of `Writing R Extensions'.)
1367
 
8505 pd 1368
Under rare conditions (lots of very short input lines) the history buffer
1369
could overrun and so cause crashes. This has been possible since rw0623,
1370
but first caused reported problems in rw1000 and has now been fixed.
1371
 
8630 ripley 1372
Certain HP printer drivers (e.g. the 6/6MP-Postscript driver) reset the
1373
FPU and so were causing crashes.  This has been circumvented in this
8706 ripley 1374
version by restoring the settings before and after each page.
8505 pd 1375
 
8641 ripley 1376
Building on a non-default drive should be more reliable, as Perl is
1377
used to find the current drive.
8630 ripley 1378
 
8764 ripley 1379
 
8701 ripley 1380
    -------------------------------------------------------------------
8641 ripley 1381
 
8699 ripley 1382
	For changes prior to the release of R 1.0.0 on 29 Feb 2000
1383
	see the file CHANGES0 in the source distribution.