[R] RW 0.64.2 substring() string truncation?

Prof Brian D Ripley ripley at stats.ox.ac.uk
Tue Aug 3 21:11:05 CEST 1999


On Tue, 3 Aug 1999, T.E.Diaz wrote:

> Thanks to Prof Ripley and Peter Dalgaard for the "#define MAXELTSIZE 
> 8192" clarification to my earlier post (attached below).
> 
> As to the the need for a string of nchar()>8192, I am using it to 
> store the alphanumeric names of FromNodes and ToNodes in a large 
> generalized network. The optimization routine is implemented in C 
> (actually translated from Fortran 77 using F2C and did some 
> modifications) but the network representation is constructed in R.

Many of these limits will be removed in R 0.65.0. If you have access to
it, you might like to try compiling up a snapshot (tomorrow's or later)
and seeing if the limitations that bite you have gone. In particular
the limitations on substr/substring and deparse, dput, dump and printing
of strings should have become ones of available memory. The price to
pay if you do use very large strings is time is allocating scratch space,
and that some of the scratch space is kept in case it is needed again.

There are still some limits left: in particular I think there are problems
with parsing very long strings.

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