Skip to contents

A tidy interface to the open data of the Observatory of Pernambuco, Brazil (https://cf.pe.gov.br/observatorio): municipal series on population, economy, public finance, labour, education, health, security, transport and environment, collected from official public sources (such as the Brazilian Institute of Geography and Statistics and the Ministry of Health, identified in every row) and organised by 'Condepe/Fidem', the State Agency for Planning and Research, every source in the same long format, returned as tibbles. Also provides the municipal boundaries and eleven official regional classifications of the municipalities, ready for maps, and citations that credit the original source. Files are read from the canonical endpoint with a 'Hugging Face' mirror as fallback, cached on disk per catalogue version and checked against their published 'SHA-256'. Network failures are handled gracefully.

Opções do pacote

  • condepe.quiet: silencia as mensagens informativas. Padrão TRUE em sessões não interativas.

  • condepe.cache_dir: local do cache. Padrão tools::R_user_dir("condepe", "cache") (ou CONDEPE_CACHE_DIR).

  • condepe.catalog_max_age: segundos em que o catálogo em cache vale sem consultar o servidor. Padrão 6 horas.

  • condepe.base_url, condepe.mirror_url: o endereço canônico e o espelho (também CONDEPE_URL / CONDEPE_MIRROR_URL); espelho vazio desliga o fallback.

  • condepe.max_tries, condepe.timeout: tentativas (padrão 3, com espera exponencial) e tempo limite de cada requisição em segundos (padrão 60).

Author

Maintainer: André Leite leite@castlab.org (ORCID)

Authors: