Learn R Programming

cancensus (version 0.4.8)

set_cache_path: Set persistent cancensus cache location

Description

Cancensus provides session caching for retrieved data to increase speeds and reduce API usage. This function will create a persistent cache across sessions.

Usage

set_cache_path(cache_path, overwrite = FALSE, install = FALSE)

Arguments

cache_path

a local directory to use for saving cached data

overwrite

Option to overwrite any existing Censusmapper keys already stored locally.

install

Option to install permanently for use across sessions.

Examples

Run this code
# NOT RUN {
set_cache_path("~/cancensus_cache")

# This will set the cache path permanently until ovewritten again
set_cache_path("~/cancensus_cache", install = TRUE)
# }

Run the code above in your browser using DataLab