Skip to content

Error when caching figshare datasets #69

@lazappi

Description

@lazappi

The latest version of {BiocFileCache} (v3.0.0) doesn't seem to be able to download datasets from figshare with a warning about a 403 error. I'm not sure if this is caused by the major changes in this version or something else.

library(BiocFileCache)

cache <- BiocFileCache(ask = FALSE)
file <- bfcrpath(cache, "https://figshare.com/ndownloader/files/30683438")
# adding rname 'https://figshare.com/ndownloader/files/30683438'
# Error in bfcrpath(cache, "https://figshare.com/ndownloader/files/30683438") : 
#  not all 'rnames' found or unique.
# In addition: Warning messages:
# 1: download failed
#  web resource path: ‘https://figshare.com/ndownloader/files/30683438’
#  local file path: ‘/Users/luke/Library/Caches/org.R-project.R/R/BiocFileCache/9bffb711be9_30683438’
#  reason: HTTP 403 Forbidden. 
# 2: bfcadd() failed; resource removed
#  rid: BFC3
#  fpath: ‘https://figshare.com/ndownloader/files/30683438’
#  reason: download failed 
# 3: In value[[3L]](cond) : 
# trying to add rname 'https://figshare.com/ndownloader/files/30683438' produced error:
#  bfcadd() failed; see warnings()

Regular download.file() works so I don't think it is a problem with the link itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions