Skip to contents

Enables or disables local caching for O*NET API responses. Caching is off by default because API results may change over time, but it is useful when developing analyses that repeatedly request the same endpoints.

Usage

onet_cache_use(
  enabled = TRUE,
  cache_dir = tools::R_user_dir("onet2r", "cache")
)

Arguments

enabled

Logical; enable or disable response caching.

cache_dir

Directory where cached API responses should be stored.

Value

Invisibly returns a list with the active cache settings.

Examples

onet_cache_use(enabled = FALSE)