Skip to contents

Checks if file exists in a directory, downloads the file if its not found. Sleeps for a given amount of time to respect rate limits on openalex servers.

Usage

download_oa_item(entity, oa_id, dir_temp = tempdir(), sleep_time = 1)

Arguments

entity

Character. What kind of openalex item is it?

oa_id

Character. ID from openalex

dir_temp

Character. path to directory where jons is stored.

sleep_time

Numeric. Seconds of sleep.

Value

Character. File path to json file