Displaying 1 result from an estimated 1 matches for "yahoosymbol".
2009 Dec 21
2
Closing files after using write
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 to close the file after write opens it, and looked
through the RBase docs... but I can't find anything that succesfully closes
the file...