Re: [R] readLines() problem-error

2013-07-12 Thread peter dalgaard
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

[R] readLines() problem-error

2013-07-12 Thread Zsurzsa Laszlo
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 provid