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.

This is obviously trivial... any ideas

Nick

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to