[R] long character data

Prof Brian D Ripley ripley at stats.ox.ac.uk
Mon Jan 31 10:54:42 CET 2000


On Mon, 31 Jan 2000, [iso-8859-1] Jens Oehlschlägel-Akiyoshi wrote:

> When trying to generate very long strings, my R hangs without any error
> message, even if given much memory.

[R 0.90.1 on Windows, GUI console I presume.] 

> # e.g.
> x <- character(10)
> for (i in 1:10) x[i] <- paste(1:1000, collapse="abc")
> paste(x, collapse="")
> 
> # or directly
> paste(1:10000, collapse="abc")
> 
> Am I violating any max(nchar(character())) or is this a bug?

The problem is in displaying them on the Rgui console: this will work in
Rterm and other versions of R.

This is already fixed for rw0990.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list