Skip to contents

Retrieve info from Dataverse by URL

Usage

dataverse_info(dataverse_url, id_col = 1, pb = NULL, cache = FALSE)

Arguments

dataverse_url

a Dataverse dataset URL (or DOI, if host is also given), or a table containing them (e.g., as created by dataverse_links())

id_col

the index or name of the column that contains Dataverse URLs, if dataverse_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 installation's API. Off by default.

Value

a data frame of information

Examples

# \donttest{
if (online("dataverse.harvard.edu")) {
    dataverse_info(paste0("https://dataverse.harvard.edu/dataset.xhtml?",
                          "persistentId=doi:10.7910/DVN/GGDUND"))
}
#>                                                                     dataverse_url
#> 1 https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GGDUND
#>          dataverse_host      dataverse_doi
#> 1 dataverse.harvard.edu 10.7910/DVN/GGDUND
#>                                        title                                doi
#> 1 Study 1 and Study 2 of Creativity Project  https://doi.org/10.7910/DVN/GGDUND
#>       publication_date         updated_date       authors license
#> 1 2018-11-20T23:25:12Z 2018-11-20T23:25:12Z Gable, Shelly CC0 1.0
#>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            files
#> 1 Study1_June2017manuscript.tab, FALSE, 2, 126651, 3021574, doi:10.7910/DVN/GGDUND/05BGDU, https://doi.org/10.7910/DVN/GGDUND/05BGDU, Study1_June2017manuscript.tab, text/tab-separated-values, Tab-Delimited, 28877, s3://dvn-cloud:15c60ebf567-f4f350593263, application/x-spss-sav, SPSS Binary, 28885, Study1_June2017manuscript.sav, UNF:6:i5XZFgCwBOtovZe5pRxUOw==, -1, b2db0e379cbe34f682ab07e6d7e45c72, MD5, b2db0e379cbe34f682ab07e6d7e45c72, TRUE, 2017-05-31, 2018-11-20, 2018-11-20T23:25:12Z, FALSE, Study2_June2017manuscript.tab, FALSE, 2, 126651, 3021575, doi:10.7910/DVN/GGDUND/0CYHBJ, https://doi.org/10.7910/DVN/GGDUND/0CYHBJ, Study2_June2017manuscript.tab, text/tab-separated-values, Tab-Delimited, 14108, s3://dvn-cloud:15c60ebf183-02c24b3499dd, application/x-spss-sav, SPSS Binary, 14622, Study2_June2017manuscript.sav, UNF:6:gzKVtO5Hgv68aA0/CNnBIQ==, -1, 038cde2753bf46d67ad9de3d2b8e4272, MD5, 038cde2753bf46d67ad9de3d2b8e4272, TRUE, 2017-05-31, 2018-11-20, 2018-11-20T23:25:12Z, FALSE
# }