s-news
[Top] [All Lists]

Refresh the memory

To: s-news@lists.biostat.wustl.edu
Subject: Refresh the memory
From: Mandans <mandans_p@yahoo.com>
Date: Wed, 22 Jul 2009 15:07:31 -0700 (PDT)
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1248300451; bh=f8/3E87uqedIkOmOKl0mTYjy37ZLrcoUeFW8xSHQ16g=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=XDGAOdp2ml3a8uHrBzWCukZqYrbL0SW9cSVMxsNU+bF8Nf5jPo/W+L1K4jp6b4ybLzhVGxOcO4rHAmT05cJ1pH6HzNBYiXrpESeBDc9iUizkj47xMRSv/fm61vQaTYZv0E8xOd+Hl7dnMNiWw54ZwwssW+u4VizxEJGdc5iR4O0=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=EFpNuHfqbY+NkRBgQ0ME4Sz++gGgGpkgFRyBTtGPGcEhBS4/oF2kfQCBP6/eLj4NA8S12LcEq5uHxm4GPLFUVbkJ61cVmtYxBBgAXWWLlw1WXN9WifoJGe+unQyu99+hTZwxOXzqXjI+Qz3pbnXmlEIOOrnHvnLD/cMVrwdMp3c=;
Hello everyone,

Thanks for being such a great forum of knowledgeable members and helping 
everyone out here.

Have a question regarding memory refresh.

I am using Splus 8.1 and was wondering is there a way to delete all the 
temporary memory allocation and temporary files and start fresh.

I have a For loop which reads from text file, do some calculation and write a 
file out. These files are big files say around 100Mb after it goes through 5 or 
6 files it gives an error saying - "Buff Error: Output device full when writing 
to C:\----\xxx.dcf file" and it stops. If you again start from where it stopped 
it runs again for another 5 or 6 files and then it gives this same error. I 
have loaded the bigdata library. If there is a way I can refresh the memory in 
the beginning of the for loop, I would think it would work and each for loop 
run is independent. Any suggestions.?

This is my sample code

--
library(bigdata)

for i in 1:100 {

 data1 <- importData(paste("C:/Data/Folder/",i,".txt",sep=""), type="ASCII")

# data1 processing
# after the processing data2 is created and writing to the disk

exportData(data2,
        paste("C:/Data/Folder/Data",1,".txt",sep=""), type = "ASCII", 
delimiter= "\t", colNames=TRUE)

}

--
Any inputs is highly appreciated.

Thanks again for this wonderful forum.
Thanks



      

<Prev in Thread] Current Thread [Next in Thread>
  • Refresh the memory, Mandans <=