The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

tesouror: Access Brazilian National Treasury Open Data APIs

Provides a unified interface to access open data from the Brazilian National Treasury ('Tesouro Nacional') and related government APIs. Covers six data sources: 'SICONFI' <https://apidatalake.tesouro.gov.br/docs/siconfi/> for fiscal reports ('RREO', 'RGF', 'DCA', 'MSC') and entity information; 'CUSTOS' <https://apidatalake.tesouro.gov.br/docs/custos/> for federal government cost data; 'SADIPEM' <https://apidatalake.tesouro.gov.br/docs/sadipem/> for public debt and credit operations; 'Transferencias Constitucionais' <https://apiapex.tesouro.gov.br/aria/v1/transferencias_constitucionais/docs> for constitutional transfers to states and municipalities; 'SIORG' <https://estruturaorganizacional.dados.gov.br> for federal organizational structure; and 'SIOPE' ('FNDE'/'MEC') for education spending data. Features automatic pagination, in-memory caching, retry logic, and tidy output.

Version: 0.2.2
Depends: R (≥ 4.1.0)
Imports: cli (≥ 3.6.0), dplyr (≥ 1.1.0), httr2 (≥ 1.0.0), janitor (≥ 2.2.0), stringi (≥ 1.7.0), stringr (≥ 1.5.0), tibble (≥ 3.2.0)
Suggests: httptest2 (≥ 1.0.0), knitr, rmarkdown, testthat (≥ 3.0.0), withr
Published: 2026-05-06
DOI: 10.32614/CRAN.package.tesouror (may not be active yet)
Author: Andre Leite [aut, cre], Marcos Wasilew [aut], Hugo Vasconcelos [aut], Carlos Amorin [aut], Diogo Bezerra [aut], Tiago Pereira [aut], Fernando Barbalho [aut]
Maintainer: Andre Leite <leite at castlab.org>
BugReports: https://github.com/StrategicProjects/tesouror/issues
License: MIT + file LICENSE
URL: https://github.com/StrategicProjects/tesouror, https://strategicprojects.github.io/tesouror/
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: tesouror results

Documentation:

Reference manual: tesouror.html , tesouror.pdf
Vignettes: CUSTOS API – Federal government costs (source, R code)
Getting started with tesouror (source, R code)
RREO longitudinal — handling layout drift across years (source, R code)
SADIPEM API – Public debt & credit operations (source, R code)
SICONFI API – Fiscal data (source, R code)
SIOPE API – Education spending data (source, R code)
SIORG – Organizational Structure (source, R code)
Transferências Constitucionais API (source, R code)
Transferências Constitucionais para Municípios de Pernambuco (source, R code)

Downloads:

Package source: tesouror_0.2.2.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): tesouror_0.2.2.tgz, r-oldrel (arm64): tesouror_0.2.2.tgz, r-release (x86_64): tesouror_0.2.2.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=tesouror to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.