Skip to contents

Retrieve info from DataONE by URL

Usage

dataone_info(dataone_url, id_col = 1, pb = NULL, cache = FALSE)

Arguments

dataone_url

a DataONE URL or DOI, or a table containing them (e.g., as created by dataone_links())

id_col

the index or name of the column that contains DataONE URLs, if dataone_url is a table

pb

a progress bar passed from another function

cache

if TRUE, reuse a previously cached listing for a dataset already looked up (see repo_info_cache_clear()) instead of re-querying the host's API. Off by default.

Value

a data frame of information

Examples

# \donttest{
if (online("cn.dataone.org")) {
    dataone_info("https://doi.org/10.18739/A2GT5FG86")
}
#>                          dataone_url  dataone_host            dataone_pid
#> 1 https://doi.org/10.18739/A2GT5FG86 arcticdata.io doi:10.18739/A2GT5FG86
#>                                                                                                 title
#> 1 Root carbon pools across a post-fire tree density gradient in far northeastern Siberia, 2015 - 2017
#>                      doi publication_date
#> 1 doi:10.18739/A2GT5FG86             2021
#>                                                                                         authors
#> 1 Heather Alexander, Alison Paulson, Rebecca Hewitt, Michael Loranty, Michelle Mack, Sue Natali
#>                                                                                                                                                                                                       license
#> 1 This work is dedicated to the public domain under the Creative Commons Universal 1.0 Public Domain Dedication. To view a copy of this dedication, visit https://creativecommons.org/publicdomain/zero/1.0/.
#>                                                                    files
#> 1 Roots_4_15_21.csv, 3656, urn:uuid:330faae0-9bd5-4e7a-98a3-0ebeeb7f767f
# }