Entering edit mode
Qiang
▴
80
@qiang-9580
Last seen 4.0 years ago
Hi,
Is there an option to keep the original file name when adding a 'web' file by bfcadd
?
For example,
bfc0 <- BiocFileCache(tempdir(), ask = F)
add1 <- bfcadd(bfc0, "bwa",
fpath = "https://raw.githubusercontent.com/hubentu/RcwlRecipes/master/Rcwl/tl_bwa.R",
rpath = file.path(tempdir(), "tl_bwa.R"))
add1
## "/tmp/RtmpzSEpeG/b01175a39e7e_tl_bwa.R"
A prefix was added to the file name. Is it possible to keep the original name?
Thanks, Qiang
I see. I guess I have to download the remote file first and then add it to the cache locally. Thanks!
Why is that? If the file management is handled with BiocFileCache would there be a need to directly access the file by that specific name? BiocFileCache should be able to handle the download and caching, and then if you utilize the interface give you the location of the local file path to use in coding.