[R] long character data

Jens Oehlschlägel-Akiyoshi jens.oehlschlaegel-akiyoshi at mdfactory.de
Mon Jan 31 10:00:49 CET 2000




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

# 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?

Regards


Jens Oehlschlägel-Akiyoshi



R --vanilla

> version
         _
platform Windows
arch     x86
os       Win32
system   x86, Win32
status
major    0
minor    90.1
year     1999
month    December
day      15
language R

> gc()
         free  total (Mb)
Ncells 123274 250000  4.8
Vcells 746486 786432  6.0


--
Dr. Jens Oehlschlägel-Akiyoshi
MD FACTORY GmbH
Bayerstrasse 21

80335 München

Tel.: 089 545 28-27
Fax.: 089 545 28-10
http://www.mdfactory.de

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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