Reading FRE Corporate Data of Public Traded Companies from B3
Overview
Reads corporate data such as board composition and compensation for companies traded at B3, the Brazilian exchange https://www.b3.com.br/. All data is downloaded and imported from the ftp site https://dados.cvm.gov.br/dados/CIA_ABERTA/DOC/FRE/.
New features
- Added
companies_cvm_codesargument toget_fre_data2(), allowing users to filter results by one or more CVM company codes. - Cleaned table names in the output list by stripping the redundant
fre_cia_aberta_prefix (e.g.capital_socialinstead ofcia_aberta_capital_social). - Added
verboselogical parameter toget_fre_data2()to allow controlling or suppressing informative console output. - Added parsed RDS caching in
cache_folder/parsed-rds/so subsequent calls for previously parsed years load instantly from cached RDS files without re-unzipping or re-parsing CSVs. - Added comprehensive input validation to
get_fre_data2(): type and range checks forfirst_year/last_year,verbose, a warning when requesting future years, and type checking forcompanies_cvm_codes. - Added
_pkgdown.ymlfor website configuration and package-level documentation (?GetFREData).
Bug fixes & usability
- Fixed a crash in the download helper where
file.size()was called on a non-existent file after a failed download attempt. - Download failures now raise a clear error (
cli::cli_abort()) instead of silently returningFALSE, which previously led to confusing downstream errors. - Suppressed
readr's CSV reading progress and speed messages (progress = FALSE,suppressMessages()) during dataset parsing.
Breaking changes
Show all changes in 1.1.0Hide the rest of the changes in 1.1.0
- Removed the accidentally exported
my_fix_cols()function from the public API. This was an internal helper and should not have been exported.
Testing & Infrastructure
- Expanded unit test coverage with offline tests for CSV parsing helpers (
fix_single_name(),read_single_csv(),fix_df()), input validation, and deprecation stubs. - Updated GitHub Actions workflow to
@v4(actions/checkout@v4). - Resolved
R CMD checkNOTE regarding undefined global variable.datainfilter_by_company(), reaching a cleanStatus: OK(0 ERRORS, 0 WARNINGS, 0 NOTES).
Code cleanup
- Removed ~1,100 lines of dead code from the deprecated
get_fre_data()XML pipeline:fcts_xml.R,fct_read_fre_zip_file.R,fct_get_fre_links.R, andfct_utils.R. Theget_fre_data()function remains as a minimal deprecation stub pointing users toget_fre_data2(). - Dropped
XMLandmagrittrfrom package dependencies. - Migrated all remaining
%>%(magrittr pipe) usage to the native R pipe (|>).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 6 (1 internal)includes a package overview page
- Examples that run
- 0%5 never run
- Exported functions with examples
- 100%
- Documented parameters
- 96%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Using GetFREData HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
Commits over time
6 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/msperlin/getfredata on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
The repository owner accepts GitHub Sponsors
Show all practicesHide 1 practice
Dependencies
Code & Tests
People & History
Package metadata
- First published
- 2021-04-06
- Total releases
- 5 / 5 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 16 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("GetFREData")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.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.