[R] Memory errors when using QCA package

Matthew Gwynne mathew.gwynne at gmail.com
Wed Jul 22 13:31:34 CEST 2009


Hi,

I have been using the QCA package, in particular the "eqmcc" function
and I am having some issues when trying to use this to minimise a
particular boolean function.

The  boolean function in question has 16 variables, and I am providing
the full truth table for the function (65536 with 256 true entries),
in the following way :

library(QCA)

func_tt = read.table("func.tt",header=TRUE)
eqmcc(func_tt, outcome="O", expl.0=TRUE)

However, after calculating for a little while, the system throws up a
memory error :

Error in vector("double", length) :
  cannot allocate vector of length 2130706560


However, looking at the memory usage, I seem to have far more than 2GB free.

Is there some kind of built-in limit on the size of the heap in R? If
so, is there some way I can extend this?

Does anyone have any insight into this? Perhaps I am doing something stupid?

Thanks

Matthew




More information about the R-help mailing list