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.
| Version: | 0.1.0 |
| Depends: | R (≥ 4.1.0) |
| Imports: | archive (≥ 1.1.0), cli (≥ 3.6.0), curl (≥ 5.0.0), readr (≥ 2.1.0), rlang (≥ 1.1.0), stringi (≥ 1.7.0), tibble (≥ 3.2.0) |
| Suggests: | dplyr, knitr, rmarkdown, testthat (≥ 3.0.0), withr |
| Published: | 2026-09-30 |
| DOI: | 10.32614/CRAN.package.cagedr (may not be active yet) |
| Author: | Andre Leite |
| Maintainer: | Andre Leite <leite at castlab.org> |
| BugReports: | https://github.com/StrategicProjects/cagedr/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/StrategicProjects/cagedr, https://strategicprojects.github.io/cagedr/ |
| NeedsCompilation: | no |
| SystemRequirements: | libarchive (via the 'archive' package) |
| Language: | en-US |
| Materials: | README, NEWS |
| CRAN checks: | cagedr results |
| Reference manual: | cagedr.html , cagedr.pdf |
| Vignettes: |
Getting started with cagedr (source, R code) Streaming, cache and data vintages (source, R code) |
| Package source: | cagedr_0.1.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): cagedr_0.1.0.tgz, r-oldrel (x86_64): cagedr_0.1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=cagedr to link to this page.