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 have ran into the issue where I cannot delete files once accessed by vroom::vroom()
This has been discussed in two previous issues (#177 and #280), but these do not seem to resolve the problem as in some cases, the link to the file is still open.
However, this seems to require explicit materialization as merely manipulating the data does not close the connection. Restarting R before the following still shows the connection after mutate():
And it stays if we do not save the object (R restart again to be certain), although figuring out if an object is being stored or not is an entirely different problem:
vroom::vroom("test.csv")
ps::ps_open_files()
Other than materializing an object (obviously not ideal for large files) or restarting R, how do we close this connection? It would be useful to have a vroom_delete() function.
The text was updated successfully, but these errors were encountered:
You cannot delete the file until all the data has been read from it, e.g. it must be fully materialized if you want to delete it.
If you element-wise access vroom has no way to know which parts of the file has been read, this would require tracking the accesses using occupancy map or similar idea (e.g. #101).
If you expect to be able to remove the file after reading I would suggest you use altrep = FALSE when reading the file.
I have ran into the issue where I cannot delete files once accessed by
vroom::vroom()
This has been discussed in two previous issues (#177 and #280), but these do not seem to resolve the problem as in some cases, the link to the file is still open.
Take this example:
This returns a list of the currently opened files (as described in #280). Materializing the object closes this connection
However, this seems to require explicit materialization as merely manipulating the data does not close the connection. Restarting R before the following still shows the connection after
mutate()
:It also persists if we delete the object (again restarting R):
And it stays if we do not save the object (R restart again to be certain), although figuring out if an object is being stored or not is an entirely different problem:
Other than materializing an object (obviously not ideal for large files) or restarting R, how do we close this connection? It would be useful to have a
vroom_delete()
function.The text was updated successfully, but these errors were encountered: