Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change in local_connection: passing list(conn) used to work #271

Open
MichaelChirico opened this issue Aug 13, 2024 · 0 comments
Open

Comments

@MichaelChirico
Copy link
Contributor

Noticed when updating from 2.5.1 to 3.0.1 today, this example started failing:

writeLines('a', tmp<-tempfile())

local({
  local_connection(list(file(tmp, open='r')))
  NULL
})

I think the new error is good and AFAICT we've always been using local_connection() incorrectly.

However, I expected to find some mention in the NEWS by searching "connection" to steer me in the right direction, to no avail. OTOH, I don't see any change in the local_connection() source code, so maybe this is due to a change in defer()? Still it's not clear to me what's changed from glancing at the NEWS, so I'm filing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant