Skip to contents

Sets the directory used to cache CNEFE data. This configuration is persistent across different R sessions.

Usage

set_cache_dir(path = NULL)

Arguments

path

A string. The path to the directory used to cache the data. If NULL (the default), the package will use a versioned directory saved inside the directory returned by tools::R_user_dir().

Value

Invisibly returns the cache directory path.

Examples

set_cache_dir(tempdir())
#>  Setting cache directory to /tmp/RtmpZwra8G.

# back to default
set_cache_dir(NULL)
#>  Setting cache directory to
#>   /home/runner/.cache/R/geocodebr/data_release_v0.1.0.