Title: | Access for Dryad Web Services |
---|---|
Description: | Interface to the Dryad "Solr" API, their "OAI-PMH" service, and fetch datasets. Dryad (<https://datadryad.org/>) is a curated host of data underlying scientific publications. |
Authors: | Karthik Ram [aut] , Scott Chamberlain [aut, cre] , Carl Boettiger [aut] |
Maintainer: | Scott Chamberlain <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.1.95 |
Built: | 2024-11-27 03:39:11 UTC |
Source: | https://github.com/ropensci/rdryad |
Includes access to Dryad's Solr API, OAI-PMH service, and part of their REST API.
The functions match the three major sets of Dryad API routes for datasets, fiiles and versions.
Datasets:
Files:
Versions:
The Dryad Solr API is no longer being updated, so the functions that used to work with it are all defunct, see solr-defunct
The Dryad OAI-PMH service is no longer being updated, so the functions that used to work with it are all defunct, see oai-defunct
More defunct functions:
dryad_fetch()
- use instead dryad_files_download()
or
dryad_versions_download()
Get datasets by DOI(s)
dryad_dataset(dois, ...)
dryad_dataset(dois, ...)
dois |
(character) one or more DOIs, required |
... |
Further args passed on to crul::verb-GET |
a list of lists, each named by the input DOI
Other dryad-datasets:
dryad_dataset_versions()
,
dryad_datasets()
## Not run: dryad_dataset(doi = "10.5061/dryad.f385721n") dois <- c("10.5061/dryad.f385721n", "10.5061/dryad.7ct1n", "10.5061/dryad.1g626") dryad_dataset(dois = dois) ## End(Not run)
## Not run: dryad_dataset(doi = "10.5061/dryad.f385721n") dois <- c("10.5061/dryad.f385721n", "10.5061/dryad.7ct1n", "10.5061/dryad.1g626") dryad_dataset(dois = dois) ## End(Not run)
Get dataset versions by DOI(s)
dryad_dataset_versions(dois, ...)
dryad_dataset_versions(dois, ...)
dois |
(character) one or more DOIs, required |
... |
Further args passed on to crul::verb-GET |
a list of lists, each named by the input DOI
Other dryad-datasets:
dryad_datasets()
,
dryad_dataset()
## Not run: x = dryad_dataset_versions(dois = "10.5061/dryad.f385721n") x dois <- c("10.5061/dryad.f385721n", "10.5061/dryad.7ct1n", "10.5061/dryad.1g626") dryad_dataset_versions(dois = dois) ## End(Not run)
## Not run: x = dryad_dataset_versions(dois = "10.5061/dryad.f385721n") x dois <- c("10.5061/dryad.f385721n", "10.5061/dryad.7ct1n", "10.5061/dryad.1g626") dryad_dataset_versions(dois = dois) ## End(Not run)
List datasets
dryad_datasets(...)
dryad_datasets(...)
... |
Named key-value sequeunce of parameters passed to Dryad query such as "page" (nunber), or "per_page". |
a tibble
Other dryad-datasets:
dryad_dataset_versions()
,
dryad_dataset()
## Not run: (x <- dryad_datasets()) x$meta x$links x$data x <- dryad_datasets(per_page = 50, page = 7) ## End(Not run)
## Not run: (x <- dryad_datasets()) x$meta x$links x$data x <- dryad_datasets(per_page = 50, page = 7) ## End(Not run)
Download datasets by their DOI(s)
dryad_download(dois, ...)
dryad_download(dois, ...)
dois |
(character) one or more DOIs, required |
... |
Further args passed on to crul::verb-GET |
file path for the file
## Not run: dryad_download(dois = "10.5061/dryad.f385721n") dois <- c("10.5061/dryad.f385721n", "10.5061/dryad.7ct1n", "10.5061/dryad.1g626") dryad_download(dois = dois) ## End(Not run)
## Not run: dryad_download(dois = "10.5061/dryad.f385721n") dois <- c("10.5061/dryad.f385721n", "10.5061/dryad.7ct1n", "10.5061/dryad.1g626") dryad_download(dois = dois) ## End(Not run)
Get metadata information about a file
dryad_files(ids, ...)
dryad_files(ids, ...)
ids |
(numeric) one or more file ids, required |
... |
Further args passed on to crul::verb-GET |
a list of lists, each named by the input DOI
Other dryad-files:
dryad_files_download()
## Not run: dryad_files(ids = 61859) dryad_files(ids = 61858) dryad_files(ids = c(61858, 61859)) ## End(Not run)
## Not run: dryad_files(ids = 61859) dryad_files(ids = 61858) dryad_files(ids = c(61858, 61859)) ## End(Not run)
Download a specific file
dryad_files_download(ids, ...)
dryad_files_download(ids, ...)
ids |
(numeric) one or more file ids, required |
... |
Further args passed on to crul::verb-GET |
a list of lists, each named by the input DOI
UPDATE: we used to not use caching in this fxn; we do now as of 2020-12-15
Other dryad-files:
dryad_files()
## Not run: dryad_files_download(ids = 61858) dryad_files_download(ids = 61859) ## End(Not run)
## Not run: dryad_files_download(ids = 61858) dryad_files_download(ids = 61859) ## End(Not run)
Used primarily to modify the cache directory and set with dryad_set_cache.
dryad_get_cache()
dryad_get_cache()
A hoardr object defining the cache directory.
Set the 'rdryad' cache by passing a hoardr object defining cache data including local path.
dryad_set_cache(obj)
dryad_set_cache(obj)
obj |
A hoardr object returned from dryad_get_cache. |
(Invisibly) The update cache object.
Get a dataset version by version ID
dryad_versions(ids, ...) dryad_versions_files(ids, ...) dryad_versions_download(ids, ...)
dryad_versions(ids, ...) dryad_versions_files(ids, ...) dryad_versions_download(ids, ...)
ids |
(numeric/integer) one or more version ids, required |
... |
Further args passed on to crul::verb-GET |
dryad_versions()
and dryad_versions_files()
use async http requests, while dryad_versions_download()
does not use async
a list of lists, each named by the input DOI
## Not run: dryad_versions(ids = 18774) dryad_versions_files(ids = 18774) dryad_versions_download(ids = 18774) ## End(Not run)
## Not run: dryad_versions(ids = 18774) dryad_versions_files(ids = 18774) dryad_versions_download(ids = 18774) ## End(Not run)