[R] cannot allocate vector of size...

Andrew C. Ward s195404 at student.uq.edu.au
Mon Sep 8 12:15:25 CEST 2003


Dear Hannah,

My usual replies to this question are:
  1. Read in just a subset (or a few random subsets) of
     your data and do some analysis on each of these
  2. Write some C code (either standalone or as something)
     that can be called from R
  3. Get even more RAM


Regards,

Andrew C. Ward

CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
andreww at cheque.uq.edu.au


Quoting hwood at iprimus.com.au:

> Hi,
> 
> I know that this question has been asked several times
> before but I haven't
> been able to find an answer.
> 
> I'm running R on a P3 933 with 384 MB of RAM. The system
> is running Windows
> XP Home. 
> 
> I'm trying to read a 1054 row by 30303 column matrix from
> a tab delimited
> text file ("file.txt") into R using the following
> command:
>    m <- matrix(scan(file ="file.txt"), nrow = 1054, ncol
> = 30303, byrow =
> TRUE)
> When I use this command I get the following output:
>    Read 31939362 items
>    Error: cannot allocate vector of size 249526Kb
> 
> I have recently increased the amount of RAM in my system.
> Prior to this
> I got only the 'Error...' message and not the 'Read ...
> items' message.
> 
> I have increased the space available to R at startup to
> 1G by modifying the
> startup properties.
> 
> I would love any assistance/ideas anyone can give me with
> this problem.
> 
> Thanks!
> 
> Hannah
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>




More information about the R-help mailing list