If you have more than one BiocFileCache entry the conditional qgsc$rtype != "web" fails. Prior to these lines of code, I had run bugsigdbr::importBugSigDB(version="devel", cache=FALSE) at least twice with time in between runs in that time it looks like the downloads had happened different ways. (I'm not sure if this is a problem users will have but I am documenting it in case I encounter again.)
Code
> bsdb <- bugsigdbr::importBugSigDB(version = "devel")
Error in if (qgsc$rtype != "web") BiocFileCache::bfcremove(bfc, rid) else { :
the condition has length > 1
> traceback()
2: .getResourceFromCache(rname, FUN = .getdf)
1: bugsigdbr::importBugSigDB(version = "devel")
The following shows what was in my cache, which shows 2 fpaths so I wonder if that's why they were treated like different resources rather than the same resource.
Not sure yet how to reproduce because I'm not sure why they have different fpaths. One way to resolve the issue to delete the bugsigdbr cache in BiocFileCache.
If you have more than one BiocFileCache entry the conditional
qgsc$rtype != "web"
fails. Prior to these lines of code, I had runbugsigdbr::importBugSigDB(version="devel", cache=FALSE)
at least twice with time in between runs in that time it looks like the downloads had happened different ways. (I'm not sure if this is a problem users will have but I am documenting it in case I encounter again.)Code
The following shows what was in my cache, which shows 2 fpaths so I wonder if that's why they were treated like different resources rather than the same resource.
Reproducible Example
Not sure yet how to reproduce because I'm not sure why they have different fpaths. One way to resolve the issue to delete the bugsigdbr cache in BiocFileCache.
R session information