Skip to contents

Retrieve info from ReShare by URL

Usage

reshare_info(reshare_url, id_col = 1, pb = NULL, cache = FALSE)

Arguments

reshare_url

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

id_col

the index or name of the column that contains ReShare URLs, if reshare_url is a table

pb

a progress bar passed from another function

cache

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

Value

a data frame of information

Examples

# \donttest{
if (online("reshare.ukdataservice.ac.uk")) {
    reshare_info("https://doi.org/10.5255/UKDA-SN-854001")
}
#>                              reshare_url reshare_id
#> 1 https://doi.org/10.5255/UKDA-SN-854001     854001
#>                                                                                                                  title
#> 1 Architectures of displacement: Humanitarian strategies for sheltering refugees, in-depth expert interviews 2016-2019
#>                      doi    publication_date        updated_date
#> 1 10.5255/UKDA-SN-854001 2020-01-20 15:35:58 2020-06-10 16:36:02
#>           authors license
#> 1 Tom Scott-Smith    <NA>
#>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   files
#> 1 2020-01-17 12:14:57, MD5, 0dd0f24375f7a4520c72fcef7450667d, Austria_ExpertInterviews.zip, 163446, http://reshare.ukdataservice.ac.uk/id/file/568628871, 3731417, application/zip, document, 568628871, data, 2020-01-17 12:15:01, MD5, cc384d517acf399b67e23a550227fb2f, France_ExpertInterviews.zip, 534511, http://reshare.ukdataservice.ac.uk/id/file/568628873, 3731418, application/zip, document, 568628873, data, 2020-01-17 12:15:05, MD5, 893f607c28b3ded7b78fdf8151926296, Germany_ExpertInterviews.zip, 254974, http://reshare.ukdataservice.ac.uk/id/file/568628875, 3731419, application/zip, document, 568628875, data, 2020-01-17 12:15:12, MD5, cf2a4cfbd741cc64a3713e1a75464425, Greece_ExpertInterviews.zip, 157059, http://reshare.ukdataservice.ac.uk/id/file/568628877, 3731420, application/zip, document, 568628877, data, 2020-01-17 12:15:17, MD5, d23605979472de6d3142b43997d5848c, Jordan_ExpertInterviews.zip, 175086, http://reshare.ukdataservice.ac.uk/id/file/568628879, 3731421, application/zip, document, 568628879, data, 2020-01-17 12:15:22, MD5, 48d02d82b952a388da6054e59ea62f10, Lebanon_ExpertInterviews.zip, 218826, http://reshare.ukdataservice.ac.uk/id/file/568628881, 3731422, application/zip, document, 568628881, data, 2020-01-17 12:15:27, MD5, d7ea25e02671f55231fb5533a9e35319, Sundry_ExpertInterviews.zip, 59256, http://reshare.ukdataservice.ac.uk/id/file/568628883, 3731423, application/zip, document, 568628883, data, 2020-01-17 12:15:32, MD5, e490b12e154b05aced49a89f3b20b76d, SupportingDocumentation.zip, 667961, http://reshare.ukdataservice.ac.uk/id/file/568628885, 3731424, application/zip, document, 568628885, documentation, 2020-01-17 12:15:36, MD5, ec47ef5590e8e7d3861cc2c0634d77a3, ReadMe.docx, 26005, http://reshare.ukdataservice.ac.uk/id/file/568628887, 3731425, application/vnd.openxmlformats-officedocument.wordprocessingml.document, document, 568628887, readme, 2020-06-10 16:35:54, MD5, b92b0441aa51af34f81cfc2838652324, 854001_ConsentForm_English.pdf, 53424, http://reshare.ukdataservice.ac.uk/id/file/568641237, 3734433, application/pdf, document, 568641237, documentation
# }