wcjochem / sfarrow

R package for reading/writing `sf` objects from/to parquet files with `arrow`.
https://wcjochem.github.io/sfarrow/
Other
75 stars 4 forks source link

`st_read_parquet` should explicitly close connection to file #15

Open lambdamoses opened 3 months ago

lambdamoses commented 3 months ago

I got the same "Permission denied" error as described in this issue when I try to delete a GeoParquet file after reading its contents into R: https://github.com/apache/arrow/issues/24025 After that when I try to overwrite that parquet file, I get the error The requested operation cannot be performed on a file with a user-mapped section open. This only occurs in Windows (not Mac or Linux) and has already been fixed in the arrow package (as in that issue). Please explicitly close the file connection in st_read_parquet like in here: https://github.com/apache/arrow/commit/78ee4ae32a3bc3372dea111a6d35f63360b515cf Thanks!