Dispatches to the appropriate retrieve_*() function for a given source
id, so callers can retrieve any registered layer without knowing which
underlying retrieval function backs it.
Arguments
- source_id
Character scalar. A source id from
list_sources().- refresh
Logical. If
TRUE, bypasses any cached copy and re-fetches from the live API. Defaults toFALSE.- max_age
Maximum cache age in days for registry-backed LIO sources. Defaults to
NULL, which accepts any cached copy.