It's not really a problem or error, just a message that the system is closing a connection for you. Presumably, you have several previous instances of opening a connection and naming it "con".
To avoid the message, just close(con) when you are done reading from it. -pd On Jul 12, 2013, at 15:04 , Zsurzsa Laszlo wrote: > Hello everyone, > > I have my program like this: > > > while (length(oneLine <- readLines(con, n = 1, warn = FALSE)) > 0) { > # here I process the line I read > } > > > The problem is it gives me different output every time. I get a problem/ > error like: > > "Closing unused connection (con)". Sadly I can't provide the file because > it's ,ore then a GB. > > Thank you in advance, > ----------------------------------------------------------------------- > - László-András Zsurzsa, - > - Msc. Infromatics, Technical University Munich, - > ----------------------------------------------------------------------- > > [[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. -- Peter Dalgaard, Professor Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd....@cbs.dk Priv: pda...@gmail.com ______________________________________________ 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.