do 'object.size' on all the objects in 'ls()'; also show the output of  
'gc()'

Sent from my iPhone

On Aug 18, 2009, at 13:35, Hongwei Dong <pdxd...@gmail.com> wrote:

> The size of my .Rdata workspace is about 9.2 M and the data I'm  
> using is the only one object in this workspace. Is it a large one?
>
> Thanks.
> Harry
>
> On Tue, Aug 18, 2009 at 4:21 AM, jim holtman <jholt...@gmail.com>  
> wrote:
> About 2GB is the limit of the address space on 32-bit windows (you can
> get upto 3GB with a special flag; check the documentation).  Check the
> size of the other objects your workspace and remove any you don't need
> anymore.  A rule of thumb is that your largest object should only be
> at most 25% of the available space; in your case I would limit it to
> at most 500MB, but try to get by with a smaller object.  Since
> everything is kept in memory, you need to conserve.  You never did say
> what you were doing or how large the objects were you were working on.
>
> If they are large, think about keeping the data in a database and only
> retrieving the portion you need.  Try to run with a smaller sample.
>
> On Mon, Aug 17, 2009 at 2:43 PM, Hongwei Dong<pdxd...@gmail.com>  
> wrote:
> > Hi, all, I'm doing a discrete choice model in R and kept getting  
> this error:
> > Error: cannot allocate vector of size 198.6 Mb.
> >
> > Does this mean the memory limit in R has been reached?
> >
> >> memory.size()
> > [1] 1326.89
> >> memory.size(TRUE)
> > [1] 1336
> >> memory.limit()
> > [1] 1535
> >
> > My laptop has a 4G memory with Windows Vista (32 bit). I increased  
> the
> > memory limit to 2500 M. But still getting the same error message.  
> Any one
> > can give me some suggestions? Thanks.
> >
> > Harry
> >
> >        [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem that you are trying to solve?
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to