Fetch one work item and write its values into the output table by reference.
Source:R/collect_tern_data.R
dot-fill_work_item.RdFor a time-series work item, the row block (length(coords) rows) of each
date for the item is filled. For a static work item, the value is
replicated across every date. Failures leave the predeclared NA values
untouched and surface as a cli::cli_warn() with the underlying error.
Arguments
- out
The output
data.table(modified in place).- wi
A work item from
.build_work_items().- pts
A
SpatVectorof points.- n_dt
Number of dates.
- n_loc
Number of locations.
- api_key
TERN API key.
- max_tries
Total number of download retries.
- initial_delay
Initial retry delay (in seconds).