| scopus_fetch_plan | R Documentation |
Runs every cell of a scopus_plan() in turn, optionally caching each cell's
result so that an interrupted or quota-limited retrieval can resume without
re-spending quota on the cells already fetched. Results are accumulated and
bound once into a single scopus_records tibble.
scopus_fetch_plan(
plan,
max_results = Inf,
cache_dir = NULL,
resume = TRUE,
api_key = NULL,
inst_token = NULL,
verbose = FALSE
)
plan |
A |
max_results |
Maximum records to retrieve per cell (default |
cache_dir |
Optional directory for per-cell cache files. The default of
|
resume |
Logical. When |
api_key, inst_token |
Optional credentials (see |
verbose |
Logical. When |
A scopus_records tibble combining all cells, with the originating
plan attached as the plan attribute.
Any cell not served from cache requires a valid API key and internet access.
The API access section of scopus_count() gives the details.
scopus_cache_dir(), scopus_cache_clear()
plan <- scopus_plan("renewable energy", years = 2015:2022, partition = "year")
dir <- file.path(tempdir(), "energy-cache")
recs <- scopus_fetch_plan(plan, cache_dir = dir, resume = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.