Skip to content

bacenR

Access Data from Brazilian Central Bank: IFdata, Active Institutions, Balance Sheets and Normative Acts

v0.4.4 · Jul 3, 2026 · GPL (>= 3)

Description

Provides functions to query, retrieve, and tidy economic and financial data from Brazilian Central Bank web services for use in R analyses and workflows. Active institutions information, balance sheets and normative acts.

Downloads

CRAN

588

Last 30 days

6166th

1.7K

Last 90 days

2.4K

Last year

Trend: +12.6% (30d vs prior 30d)

r2u CRAN

3

Last 30 days

23

Last 90 days

35

Last year

Trend: -62.5% (30d vs prior 30d)

autoCRAN

9

Last 7 days

35

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 24, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 21, 2026
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘bacenR-Ex.R’ failed
The error most likely occurred in:

> ### Name: get_normative_data
> ### Title: Download normative acts from the Brazilian Central Bank (Bacen)
> ###   by terms and date range
> ### Aliases: get_normative_data
...[truncated]...
a(terms, ini_date, end_date)
No encoding supplied: defaulting to UTF-8.
Error: lexical error: invalid char in json text.
                                       <!doctype html>  <html lang="pt
                     (right here) ------^
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘janitor’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 9 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

11 9 exported

Complexity

10.9 avg / 22 max

Call network

11 nodes / 2 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

2,934

Files

47

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,899 (64.7%)Tests 180 (6.1%)Docs 722 (24.6%)Vignettes 133 (4.5%)

API

Exported functions

9

Internal functions

2

Recent export changes

v0.4.3+1 tidy_ifdata_reports
v0.3.1+8 get_balance_sheets, get_ifdata_registry, get_ifdata_reports +5 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.09

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

55.6%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

1

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2026-03-08

Latest release

2026-07-03

Avg cadence

59 days

Cold removal rate

Dep drift

2

LOC over versions

v0.3.1: 2,682 LOCv0.4.3: 2,956 LOCv0.4.4: 2,934 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies data.table dplyr fs glue httr janitor jsonlite lifecycle purrr readr readxl rlang stringr tibble tidyr +1 more dependencies bacenR

Version History

3 tracked
updated 0.4.4 ← 0.4.3 diff Jul 3, 2026
updated 0.4.3 ← 0.3.1 diff Jun 23, 2026
new 0.3.1 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Mar 8, 2026. Releases before tracking aren’t shown.