Rgui seems to crash when printing large strings. The following code produces the error (on my system and that of a few colleagues):
x <- paste(rep("123456789", 1e6), collapse=",")
The problem does not occur when
- running R in a DOS-window
- running R in rstudio
and, therefore, seems to be related to the Rgui.
--please do not edit the information below--
platform = i386-pc-mingw32
arch = i386
os = mingw32
system = i386, mingw32
major = 2
minor = 12.1
year = 2010
month = 12
day = 16
svn rev = 53855
language = R
version.string = R version 2.12.1 (2010-12-16)
Windows 7 (build 7600)
.GlobalEnv, package:ff, package:bit, package:tools, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, package:methods, Autoloads, package:base
This still occurs in R-devel; looks like an integer overflow somewhere. I'll track it down.
Turned out this was a case of an automatic variable sized array overflowing the stack. I've switched it to use a safer allocation scheme.