Skip to contents

Returns the configuration for ISTAT SDMX web service including all available endpoints and cache settings based on the official service at https://esploradati.istat.it/SDMXWS.

Usage

get_istat_config()

Value

A list containing ISTAT SDMX service configuration with the following components:

  • base_url: Base URL for ISTAT SDMX web service

  • endpoints: List of available API endpoints

  • defaults: Default settings for API calls

  • dataset_categories: Organized dataset categories

Details

The metadata cache directory (defaults$cache_dir) is resolved from the ISTATLAB_CACHE_DIR environment variable (Sys.getenv("ISTATLAB_CACHE_DIR", unset = "meta")). Set this variable, for example in .Renviron, to share a single metadata cache across multiple projects; when unset, the local "meta" directory is used.

Examples

if (FALSE) { # \dontrun{
# Get service configuration
config <- get_istat_config()
print(config$endpoints$data)
print(config$cache$enabled)
} # }