integer. The (maximal) number of lines to read. Negative values indicate that one should read up to the end of the connection.
ok
logical. Is it OK to reach the end of the connection before `n > 0' lines are read? If not, an error will be generated.
EOF
character. If the current line matches the EOF, it's treated as an end-of-file, and the read stops. The connection is left OPEN so that subsequent reads work.
line.count
(default FALSE) see Value.
Value
A character vector of length the number of lines read. If line.count==TRUE, it will also have an attribute "line.count" showing the number of lines read.
Details
Apart from stopping if the EOF line is encountered, and as noted with line.count==TRUE, behaviour should be as for readLines.