-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cannot remove local file after operation with duckplyr #257
Comments
I replicated the code and it worked fine for me. > # try to remove file 1.
> file.exists('temp_parquet1.parquet')
[1] TRUE
> file.remove('temp_parquet1.parquet')
[1] TRUE
> # remove file 2
> file.exists('temp_parquet2.parquet')
[1] TRUE
> file.remove('temp_parquet2.parquet')
[1] TRUE |
Is it possible that this is a Windows issue? @rafapereirabr Are you using Windows? |
Hi all. Yes, @eitsupi , I'm using windows and this is very much the problem. I thought that perhaps there was an issue with closing the database connection, though. So, I've tested a sliglty different version of my function and it seems to work. The difference is that in my previous code (above in this issue) I used I think this could solve my problem, but I thought perhaps there is something here that could be incorporated into {duckplyr} to avoid the same issue for future Windows users.
|
In your example, I felt that you may have misunderstood the function of duckplyr. Also, since |
Hi @eitsupi . For the moment, using directly This is what motivated me to use |
In that case, why would you use the |
I only knew {arrow} when I started building the {censobr} package, it was a perfect choice because of the the really simple integration with {dplyr} . The only bottleneck I've found with {arrow} so far is merging really large data sets. I'm now considering importing {duckdb} or {duckplyr} to improve the performance of {censobr} when performing out-of-memory joins. |
hi all, I'm tryin to use {duckplyr} as a dependency in one of my packages but I'm facing a strange problem. Basically, my package downloads and caches locally a few parquet files that it then uses to do a few basic operations. Due to CRAN policies , users should be able to manage / delete all files from the cache. However, for some reason, I cannot remove a local file after processing it with an operation with {duckplyr}. See reproducible example below.
obs. {duckplyr} is an amazing package, so thank you all for such a great work !
reprex
Now here's when the error happens. After running the code above, I cannot remove the local file
"temp_parquet1.parquet"
.Surprisingly, there is no problem when I try to delete
"temp_parquet2.parquet"
.The text was updated successfully, but these errors were encountered: