search for: outmia

Displaying 5 results from an estimated 5 matches for "outmia".

2009 Jul 17
1
Problem With Repeated Use Of Load/Save/Close Commands
...the problem. ------------------------------------------------------------ junk = 1 PathA = tempdir() conX = paste(PathA,"junk",sep="\\") outJunk = file(conX, open="wb") save(junk, file=outJunk) close(outJunk) for(i in 1:4000){ outMIA = file(conX, open="rb") load(file=outMIA) close(outMIA) closeAllConnections() unlink(conX) rm(outMIA) rm(junk) cat(" i = ",i,sep=" ") gc() zzz = showConnections(all=FALSE) cat(" zzz = ",zzz...
2009 Jul 18
1
[R] Problem With Repeated Use Of Load/Save/Close Commands (PR#13841)
...---------------------------------- > junk = 1 > PathA = tempdir() > conX = paste(PathA,"junk",sep="\\") > outJunk = file(conX, open="wb") > save(junk, file=outJunk) > close(outJunk) > for(i in 1:4000){ > outMIA = file(conX, open="rb") > load(file=outMIA) > close(outMIA) > closeAllConnections() > unlink(conX) > rm(outMIA) > rm(junk) > cat(" i = ",i,sep=" ") > gc() > zzz = showConnections(...
2009 Jul 16
1
Too many open files
...pathname, "MyPathnameA", so you'll probably want to edit it with your own. R E-mails from as far back as 2006 ask for help on the issue. There have been several suggestions, but no confirmed solution that I can find. You will see my attempt at these suggestions in the script [ rm(outMIA);rm(junk); and gc(); after close(outMIA); and unlink(FileNameMIA);]. For me, this becomes important because it limits the total number if iterations in nested do-loops. This is where I ran into the problem. The program below is a distillation from the original program. Any suggestion would be...
2009 Jul 10
0
Too many files open (PR#13818)
...my pathname, "MyPathnameA", so you'll probably want to edit it with your own. R E-mails from as far back as 2006 ask for help on the issue. There have been several suggestions, but no confirmed solution that I can find. You will see my attempt at these suggestions in the script [ rm(outMIA);rm(junk); and gc(); after close(outMIA); and unlink(FileNameMIA);]. #-------------------- Start of Script ---------------------------------------------- # This script induces an error: "cannot open the connection" with # warnings: "Too many open files". # ---------...
2009 Jul 18
0
[R] Problem With Repeated Use Of Load/Save/Close Commands (PR#13842)
...-- >> junk = 1 >> PathA = tempdir() >> conX = paste(PathA,"junk",sep="\\") >> outJunk = file(conX, open="wb") >> save(junk, file=outJunk) >> close(outJunk) >> for(i in 1:4000){ >> outMIA = file(conX, open="rb") >> load(file=outMIA) >> close(outMIA) >> closeAllConnections() >> unlink(conX) >> rm(outMIA) >> rm(junk) >> cat(" i = ",i,sep=" ") >> gc() &g...