Re: [R] Closing files after using write

2009-12-21 Thread Nick Torenvliet
Hey all, thanks for your input... assigning the connection and then using unlink works just fine. Thanks On Mon, Dec 21, 2009 at 12:33 PM, Gray Calhoun wrote: > Hi Nick, > I hope you're being a little disingenuous about how hard you looked > > Typing ?close will pull up the right help pag

Re: [R] Closing files after using write

2009-12-21 Thread Gray Calhoun
Hi Nick, I hope you're being a little disingenuous about how hard you looked Typing ?close will pull up the right help page. I think you're having trouble because you don't store the file object in a variable, so there's no convenient way to refer to it when you need to close it (or when

Re: [R] Closing files after using write

2009-12-21 Thread Henrique Dallazuanna
Try: closeAllConnections() On Mon, Dec 21, 2009 at 3:22 PM, Nick Torenvliet wrote: > When I run the following code in a loop I get an error after about 125 times > saying too many open files... > > > if(inherits(atmpt, "try-error")){ >            output <- paste(yahooSymbol,"\n",sep="") >      

Re: [R] Closing files after using write

2009-12-21 Thread Nick Torenvliet
That would work... except I've got a DBConnection I don't want to close and open constantly On Mon, Dec 21, 2009 at 12:28 PM, Henrique Dallazuanna wrote: > Try: > > closeAllConnections() > > On Mon, Dec 21, 2009 at 3:22 PM, Nick Torenvliet > wrote: > > When I run the following code in a loop I g

[R] Closing files after using write

2009-12-21 Thread Nick Torenvliet
When I run the following code in a loop I get an error after about 125 times saying too many open files... if(inherits(atmpt, "try-error")){ output <- paste(yahooSymbol,"\n",sep="") write(output, file = "data", append = TRUE, sep = "") } else { I've tried various things