You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do not know if it is possible, but having read_lines behave in the same way as readLines on opened connections would make reading data in chunks easier.
I know the developers have made read_lines_chunked version of read_lines - but
currently this is much slower than just using a while loop with readLines on a connection object.
The text was updated successfully, but these errors were encountered:
I suspect this is because R doesn't expose a public API for working with connections and so unfortunately there's nothing that readr can do except slurp in the entire connection and then parse it.
I am mostly curious as to why
readr::read_lines
has a different functionality compared tobase::readLines
when applied to a connection object.can only read
con
if in binary modethe connection still shows to be open, but even
readLines
does not report anythingDoing the same thing with
readLines
shows the conneciton doesn’t dropI do not know if it is possible, but having
read_lines
behave in the same way asreadLines
on opened connections would make reading data in chunks easier.I know the developers have made
read_lines_chunked
version ofread_lines
- butcurrently this is much slower than just using a while loop with
readLines
on a connection object.The text was updated successfully, but these errors were encountered: