[R] C: drive memory full

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jun 17 12:42:11 CEST 2014


On 17/06/2014 11:39, Hiyoshi, Ayako wrote:
> Dear Professor Ripley,
>
> Thank you so much for your quick reply.
>
> I tried 'dianame(tempdir())' and removed several 'Rtemp' and all other files. Unfortunately it did not changed C: drive space much.
>
> I am really sorry, but could there be other things stored in somewhere in C: drive ?

Yes, as R is a programming language.  You can do many things to create 
files.

> I called IT support, but they could not spot either.

>
> Kind regards,
> Ayako
>
> ________________________________________
> From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
> Sent: 17 June 2014 10:37
> To: Hiyoshi, Ayako; r-help at R-project.org
> Subject: Re: [R] C: drive memory full
>
> tempdir() is specific to an R session.
>
> Start up R and run
>
> dirname(tempdir())
>
> and look at that directory.  Shut down R, then remove all old
> files/folders in that directory, especially those beginning with 'Rtmp'.
>
> An R process tries to clean up after itself but
>
> - it cannot do so if it segfaults ....
> - Windows has rules which no other OS has which can result in files
> being locked and hence not deletable.
>
>
> On 17/06/2014 08:49, Hiyoshi, Ayako wrote:
>> Dear R users,
>>
>>
>>
>> Hello, I am new to R and confused about my PC's memory space after using R a while.
>>
>>
>>
>> My PC is Windows 8, RAM 8GB. I have run some analyses using commands like "vglm", "aalen(Sruv())", lm()... some regressions.
>>
>>
>>
>> I also use Stata, and when I tried to run Stata (big file), Stata could not do something which used to do because of the lack of memory space. I suspect R's something because R is the only new activity I did recently.
>>
>>
>>
>> I tried to google and found 'tempdir()'.
>>
>> I checked my temporary file but it was empty.
>>
>> Just in case, after running 'unlink(tempdir(),recursive=TRUE)', I restarted my computer, but memory space did not change. But there seems still something big in my C: drive storage and nearly 12GB is eaten.
>>
>>
>>
>> Could it be possible that R saved something somewhere?
>>
>> As I finished analyses, all I need is to erase everything stored so that I can get my memory space back.
>>
>>
>>
>> Thank you so much for your help.
>>
>>
>>
>> Best wishes,
>>
>> Ayako
>>
>>
>>
>>
>>
>>
>>
>>        [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at 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.
>>
>
>
> --
> 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
>


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