Skip to content

tesouror

0.3.1Package record

Access Brazilian National Treasury Open Data APIs

0packages depend
1.7Kdownloads / year
43.9%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.3.1

Transferencias: municipal endpoints follow the new server contract

The Transferencias Constitucionais API changed on the server side: parameter

names became case-sensitive (lower case) and the municipal endpoints became

paginated (page/pageSize, 10 rows per page by default). With the old

upper-case names the server ignored every filter and timed out (HTTP 504),

which looked like an outage.

  • get_tc_por_municipio() / get_tc_by_municipality() and the _detalhe / _detail variants now send p_estado, p_municipio (singular), p_ano, p_mes, p_transferencia and p_sn_detalhar, and fetch every page (new arguments page_size = 1000 and max_rows = Inf). A page failing after the first returns the rows fetched so far with attr(x, "partial") = TRUE.
Show all changes in 0.3.1Hide the rest of the changes in 0.3.1
  • get_tc_por_municipio_detalhe() / get_tc_by_municipality_detail() keep the original contract, which that endpoint still uses: upper-case names, P_MUNICIPIOS, no pagination. It now also documents the ten-day installment columns it returns.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.6 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK7 OK2026-05-07
Advisories

none known

Documentation

In release 0.3.1
READMEYes · 1,109 wordsVignettesYes · 9 · dynamicNEWSYes · 100% structured · mentions 0.3.1Citation fileNoWebsiteYes · pkgdown
Help pages
49 (2 internal)includes a package overview page
Examples that run
6%3 run in a plain check · 44 never run
Exported functions with examples
98%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.7K
CRAN downloads in the past year
Rank #11,376 · ~5/day · ~140/mo
Daily download trend is not available in this view yet.
30130 days
95490 days
1.7K1 year
Compare downloads with other packages →
Also on69 r2u1 autocran

Repository

1Stars
0Forks
0Open issues
0Open PRs
0Releases
42Commits
1Commit identities
42 commits · Last activity 2026-09-29 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2026-07-07 · 02026-07-26 · 1
PracticesBeta

10 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/strategicprojects/tesouror on 2026-10-25.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-09-29 · The repository has a site deploy workflow

pkgdown site last built 2026-09-29

Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 2 practices
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2026-05-02
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude, CLAUDE.md
    Commits: at least 30 crediting it in the message
Models named in its commits
  • Claude Opus 4.810 commits · Jun 2026
  • Claude Opus 4.79 commits · May 2026
  • Claude Fable 5.15 commits · Sep 2026
  • Claude Fable 53 commits · Aug 2026
  • Claude Opus 5.53 commits · Sep 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

Installing tesouror adds 30 packages (18 with compiled code, 21 MB of source tarballs). Heaviest: stringi 11 MB, openssl 1.1 MB, vctrs 1.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (7)
Author, Maintainer since 0.2.2 (2026)
Author · added in 0.3.0
Listed in earlier versions (1)
no longer listed · 0.2.2 to 0.2.3
Releases (4)

Pick two releases to compare their code metrics.

  • 0.3.1Latest
    record
    2026-09-12 · current release · diff ↗
  • 0.3.0
    record
    2026-08-19 · diff ↗ ·
    added 12 exports
    get_annual_accounts_municipalities, get_annual_accounts_ufs, get_budget_report_municipalities, get_budget_report_ufs, get_dca_municipios, get_dca_ufs, get_fiscal_report_municipalities, get_fiscal_report_ufs, get_rgf_municipios, get_rgf_ufs, get_rreo_municipios, get_rreo_ufs
  • 0.2.3
    record
    2026-06-09 · diff ↗
  • 0.2.2
    record
    2026-05-06
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-06
Total releases
4 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
5.0 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("tesouror")
Leite, A., Amorim, C., Barbalho, F., Bezerra, D., Pereira, T., Vasconcelos, H., & Wasilew, M. (2026). tesouror: Access Brazilian National Treasury Open Data APIs (Version 0.3.1) [Computer software]. https://doi.org/10.32614/CRAN.package.tesouror

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for tesouror version 0.3.1 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy