get_geo_from_cache: Get GEO one or more gemeentes, local or server cache

View source: R/get_geo_from_cache.R

get_geo_from_cacheR Documentation

Get GEO one or more gemeentes, local or server cache

Description

Given one or more gemeente's, read the file ⁠geo_<gemeente>.rds⁠ either from a local cache folder, or from a shared mount on Rstudio Connect. If the file does not yet exist, it is downloaded and placed in the cache. Much preferred to the previous use of e.g. 'data_public/.../geo...rds' because we can reuse the same (up to date!) copy of the GEO tables, and we do not have to redeploy an application if only these layers have updated.

Usage

get_geo_from_cache(gemeentes, cache_folder = "cache", ...)

Arguments

gemeentes

Vector of gemeente naam to download/read

cache_folder

The local folder to use for caching. Ignored on rsconnect, where a fixed path is used ("/data/bag" is a share on rsconnect dev and prod).

...

Further arguments to get_gemeente_geo()


moturoa/shintobag documentation built on April 6, 2024, 7:25 a.m.