From saikat@stat.wisc.edu  Thu Dec 14 23:28:43 2000
From: saikat@stat.wisc.edu (Saikat DebRoy)
Date: 14 Dec 2000 17:28:43 -0600
Subject: [Rd] cannot allocate vector of size in merge (PR#765)
In-Reply-To: viktorm@pdf.com's message of "Fri, 15 Dec 2000 00:06:58 +0100 (MET)"
References: <200012142306.AAA24559@pubhealth.ku.dk>
Message-ID: <qxp3dfqshuc.fsf@verdi.stat.wisc.edu>

>>>>> "viktorm" == viktorm  <viktorm@pdf.com> writes:

  viktorm> Full_Name: Viktor Moravetski
  viktorm> Version: Version 1.2.0 (2000-12-13)
  viktorm> OS: Win-NT 4.0 SP5
  viktorm> Submission from: (NULL) (209.128.81.199)


  viktorm> I've started R (v.1.20) with command:
  viktorm> rgui --vsize 450M --nsize 40M

  viktorm> Then at the command prompt:
  >> gc()
  viktorm>           used (Mb) gc trigger (Mb)
  viktorm> Ncells  358534  9.6   41943040 1120
  viktorm> Vcells 3469306 26.5   58982400  450

  >> df <- data.frame(x=1:30000,y=2,z=3)
  >> merge(df,df)
  viktorm> Error: vector memory exhausted (limit reached?)

Do you really need such a large number of Ncells ? I think not. Try
starting R without specifying --nsize (and maybe even --vsize). In
1.2.0, R would  automatically allocate more memory if the intial value
is not enough. But (as far as I know) it would not decrease the amount
of memory below the initial amount.

  viktorm> In S-Plus it worked fine, no problems. 
  viktorm> It looks like that "R" cannot merge dataframes with 
  viktorm> more than 30K rows. It has enough memory, so what limit 
  viktorm> was reached and what should I do?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] cannot allocate vector of size in merge (PR#765)
Saikat DebRoy