Package: cagedr 0.1.0

André Leite
cagedr: Access Novo CAGED Microdata from the Brazilian Ministry of Labour
Download and read the public, non-identified microdata of the Novo CAGED (Cadastro Geral de Empregados e Desempregados), the monthly registry of formal employment movements published by the Brazilian Ministry of Labour and Employment through the PDET FTP server <ftp://ftp.mtps.gov.br/pdet/microdados/>. Lists the reference months available on the server, downloads the three monthly files (movements declared on time, declared late, and exclusions) with an idempotent local cache, and reads the national 7z archives as a stream, filtering by state and selecting columns before anything is kept in memory, so that a single state can be extracted without loading the full national file. Also provides the official record layout and a helper to consolidate admissions, separations and net balance by reference month.
Authors:
cagedr_0.1.0.tar.gz
cagedr_0.1.0.zip(r-4.7-any)cagedr_0.1.0.zip(r-4.6-any)cagedr_0.1.0.zip(r-4.5-any)
cagedr_0.1.0.tgz(r-4.6-any)cagedr_0.1.0.tgz(r-4.5-any)
cagedr_0.1.0.tar.gz(r-4.7-any)cagedr_0.1.0.tar.gz(r-4.6-any)
cagedr_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cagedr/json (API)
| # Install 'cagedr' in R: |
| install.packages('cagedr', repos = c('https://strategicprojects.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/strategicprojects/cagedr/issues
Pkgdown/docs site:https://strategicprojects.github.io
Last updated from:ce3282f0e0. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 157 | ||
| source / vignettes | OK | 271 | ||
| linux-release | OK | 143 | ||
| macos-release | OK | 154 | ||
| macos-oldrel | OK | 107 | ||
| windows-devel | OK | 86 | ||
| windows-release | OK | 77 | ||
| windows-oldrel | OK | 80 | ||
| wasm-release | OK | 126 |
Exports:caged_availablecaged_balancecaged_cache_clearcaged_cache_dircaged_cache_listcaged_downloadcaged_fetchcaged_layoutcaged_periodscaged_read
Dependencies:archivebitbit64clicliprcpp11crayoncurlgluehmslifecyclemagrittrpillarpkgconfigprettyunitsprogressR6readrrlangstringitibbletidyselecttzdbutf8vctrsvroomwithr
Last update: 2026-09-11
Started: 2026-09-11
Last update: 2026-09-11
Started: 2026-09-11
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| List the reference months published on the PDET/MTE FTP server | caged_available |
| Consolidate admissions, separations and net balance | caged_balance |
| Remove archives from the cache | caged_cache_clear |
| Cache directory used by cagedr | caged_cache_dir |
| List the archives currently in the cache | caged_cache_list |
| Download the monthly archives of the Novo CAGED | caged_download |
| Download and read Novo CAGED microdata in one call | caged_fetch |
| Record layout of the Novo CAGED microdata | caged_layout |
| Build a sequence of reference months | caged_periods |
| Read a Novo CAGED archive as a stream | caged_read |