powered by
Returns an iterator over the lines of text from a connection. It is a wrapper around the standard readLines function.
readLines
ireadLines(con, n=1, ...)
a connection object or a character string.
integer. The maximum number of lines to read. Negative values indicate that one should read up to the end of the connection. The default value is 1.
passed on to the readLines function.
The line reading iterator.
# NOT RUN { # create an iterator over the lines of COPYING it <- ireadLines(file.path(R.home(), 'COPYING')) nextElem(it) nextElem(it) nextElem(it) # }
Run the code above in your browser using DataLab