Skip to contents

Retrieve info from Mendeley Data by URL

Usage

mendeley_info(mendeley_url, id_col = 1, pb = NULL, cache = FALSE)

Arguments

mendeley_url

a Mendeley Data URL or DOI, or a table containing them (e.g., as created by mendeley_links())

id_col

the index or name of the column that contains Mendeley Data URLs, if mendeley_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 API. Off by default.

Value

a data frame of information

Examples

# \donttest{
if (online("data.mendeley.com")) {
    mendeley_info("https://doi.org/10.17632/vjtxybrc28.1")
}
#>                            mendeley_url mendeley_id
#> 1 https://doi.org/10.17632/vjtxybrc28.1  vjtxybrc28
#>                                                                           title
#> 1 Reference group influences and campaign exposure effects on rhino horn demand
#>                     doi
#> 1 10.17632/vjtxybrc28.1
#>                                                                                                                                                                                                                        description
#> 1 This dataset is collected from fifty semi-structured interviews with self-reported rhino horn users in Hanoi. We studied the influence of different reference groups and campaign exposure effects on the demand for rhino horn.
#>           publication_date             updated_date          authors   license
#> 1 2020-05-28T04:36:44.017Z 2020-05-28T04:34:57.268Z Hoai Nam Dang Vu CC BY 4.0
#>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     files
#> 1 rhusers1.csv, 28e76153-c95a-478c-948d-7aca1b77fe32, 4b366c2b-59b0-4b48-ba16-a77553d27a22, a5f69718ba50bc73088c64c9ecaea846f27704f4561de69fb96d0aeac743959f, application/vnd.ms-excel, 35695, 2020-05-28T04:31:02.118Z, https://data.mendeley.com/public-files/datasets/vjtxybrc28/files/28e76153-c95a-478c-948d-7aca1b77fe32/file_downloaded, https://data.mendeley.com/public-files/datasets/vjtxybrc28/files/28e76153-c95a-478c-948d-7aca1b77fe32/file_viewed, 2126-11-10T21:51:59.544578794Z, 0, 0, 35695, COMPLETED
# }