Closed cmirzayi closed 1 year ago
Looks like there is something funny going on with the file path mixing forward slashes and backslashes. Maybe some use of paste
instead of file.path
. I'll take a look the next time I have access to a windows machine (likely tomorrow).
Oh yep that might be right. It looks like if you replace the backslashes with double backslashes that finds the file
> file.exists("C:\Users\cmirz\AppData\Local/R/cache/R/bugsigdbr\file73f83e0878")
[1] FALSE
> file.exists("C:\\Users\\cmirz\\AppData\\Local/R/cache/R/bugsigdbr\\file73f83e0878")
[1] TRUE
Sorry for the long wait. Finally got access to a windows machine. I couldn't reproduce the issue as described. I did see the reported warning message (note: a warning, not an error) when using importBugSigDB
with cache = FALSE
though.
The problem was that BiocFileCache::bfcdownload
tried to delete a temporary file that was read with vroom::vroom
, which triggered a warning that seems to appear only on windows (as previously described in https://github.com/tidyverse/vroom/issues/177). Note that the functionality of importBugSigDB
was never compromised, as calling importBugSigDB
with cache = FALSE
did overwrite your local copy in your cache, but failed to remove a temporary file at clean-up. This is now resolved in 1b86edd.
Thanks for reporting this!
Importing a new version of the data fails when a cached version exists due to
importBugSigDB()
failing to remove the previously cached version of the dataset. This error occurs on Windows (but appears to not occur on Linux or Mac).Reproducible example
Run this twice on Windows and you will see the error message the second time:
R session information