Closed nik-humphries closed 3 years ago
Looks like read_delim
behaviour changed between readr 1.4.0 and 2.0.0 so that it now automatically closes connections.
I'll fix AzureStor to handle this, but you might want to raise this issue at the readr repo as well.
You may also be able to work around this problem by setting the readr edition to 1, see ?readr::with_edition
I raised an issue here, it seems as though this is intended behaviour for readr 2.0.0.
Had the same issue, setting the edition to 1 solved it.
This should now be fixed in the dev version. Let me know if the problem persists.
Excellent - thanks.
A close connection error is achieved when using readr 2.0.0. Code works fine on readr 1.4.0. Readr makes the connection invalid after reading from it.
Tested using
which returns the error
You can test connections not being closed properly by running the following
Looking at con gives
A connection, specifically, ‘rawConnection’, but invalid.
Unsure if this is an issue for the readr package, or if something that can be handled within here.