Learn R Programming

rdryad (version 0.4.0)

dryad_files: Get a URL given a Dryad DOI

Description

To get a DOI from a Dryad Handle, use handle2doi()

Usage

dryad_files(doi, ...)

Arguments

doi

(character) A Dryad dataset DOI, of the form 10.5061/dryad.xxx. required

...

Curl options, passed on to crul::HttpClient

Value

(character) One or more URLS for direct download of datasets for the given Dryad DOI

Examples

Run this code
# NOT RUN {
dryad_files(doi = '10.5061/dryad.1758')
dryad_files(doi = '10.5061/dryad.60699')

# if you have a handle, use handle2doi() to convert to a DOI
(doi <- handle2doi('10255/dryad.153920'))
(files <- dryad_files(doi))
(out <- dryad_fetch(files))
# file sizes in MB
vapply(out, function(x) file.info(x)[["size"]], 1) / 10^6
# }

Run the code above in your browser using DataLab