[R] Request for help re. opening workspace

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 25 14:57:19 CET 2007

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 

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 at 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 at 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

More information about the R-help mailing list