# NOT RUN {
# Single file
x <- dryad_files('10.5061/dryad.1758')
## without specifying a destination file
dryad_fetch(url = x)
## specify a destination file
dryad_fetch(url = x[1], (f <- tempfile(fileext = ".csv")))
## use try_file_names - we try to extract file names from URLs
dryad_fetch(url = x, try_file_names = TRUE)
# Many files
x <- dryad_files(doi = '10.5061/dryad.60699')
res <- dryad_fetch(x)
head(read.delim(res[[1]], sep = ";"))
# }
Run the code above in your browser using DataLab