Re: [R] Request for help re. opening workspace

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu 25 Jan 2007 - 13:57:19 GMT

This is I assume Windows? If your version of Windows has the /3GB switch set, try starting with

Rgui --max-mem-size=2.5G

(if not, that will probably not work) and see if the workspace will load (slowly).

Saved workspaces are compressed, often highly compressed.

I have to say I am pretty unsure about this, as you appear to have saved a 2023kb vector and how you manage to create that is unclear: perhaps you used memory.limit?

On Thu, 25 Jan 2007, Clough, Helen wrote:

> Dear all,
>
> I am wondering if someone can help me out of a pickle - forgive me if
> there is an obvious solution to the following - I am not very proficient
> in the more technical aspects of R.
>
> I am working with a large data set in R, which for reasons of
> housekeeping I normally remove upon finishing a session and read in
> again at the next start-up, seeking to avoid problems with huge
> workspaces. However, rather stupidly last time I forgot to do this, and
> closed the session, which saved without complaint. However, now when I
> try to start up, I get the following message:
>
> Error: cannot allocate vector of size 2023kb
> In addition: Warning messages:
> 1: Reached total allocation of 1536Mb: see help(memory.size)
> 2: Reached total allocation of 1536Mb: see help(memory.size)
>
> followed by a window with a button which says
>
> Fatal error: unable to restore saved data in .RData
>
> and when I click "OK" obviously everything shuts down.
>
> Is there anything I can do to resolve this?? The workspace itself
> appears to be just over 100MB. I do have two backups, but I suspect that
> the most recent one may be subject to the same problem, and the other is
> rather older. I do have my routines etc. saved outside R but would
> rather avoid a tedious process of re-entering code if I can.
>
> Many thanks - all suggestions gratefully received,
>
> Helen Clough
> Lecturer in Risk Analysis,
> National Centre for Zoonosis Research,
> University of Liverpool
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>

-- 
Brian D. Ripley,                  ripley@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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch 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.
Received on Fri Jan 26 01:13:10 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 14:30:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.