census_cache_dir: Downloaded data cache

View source: R/download.R

census_cache_dirR Documentation

Downloaded data cache

Description

Census boundaries and the seven largest tables are downloaded on first use, checked against a pinned MD5 checksum, and kept here for later sessions.

Usage

census_cache_dir()

clear_census_cache()

Details

The cache lives in tools::R_user_dir(). Set the option censusindia.cache_dir to use another directory.

Value

census_cache_dir() returns the cache path, which may not exist yet. clear_census_cache() deletes it and invisibly returns that path.

See Also

census_download() to fetch everything at once; clear_geometry_cache() to release what the session holds in memory.

Examples

census_cache_dir()

censusindia documentation built on Oct. 15, 2026, 5:08 p.m.