bfs_clear_cache: Clear the BFS cache

View source: R/bfs_clear_cache.R

bfs_clear_cacheR Documentation

Clear the BFS cache

Description

Delete the base maps cached by bfs_get_base_maps() in tools::R_user_dir(package = "BFS") and the list of Swiss Stats Explorer datasets cached for the R session by bfs_get_sse_data() and bfs_get_sse_metadata(). The cached data is downloaded again when needed. In a long-running R session, e.g. a Shiny app, call it so that these two functions use the new version of a dataset. bfs_sse_datasets(), bfs_sse_dimensions() and bfs_sse_data() don't cache anything.

Usage

bfs_clear_cache()

Value

Invisibly, the path of the deleted cache folder.

Examples


bfs_clear_cache()


BFS documentation built on Oct. 21, 2026, 1:07 a.m.