The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

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.

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 ORCID iD [aut, cre], Marcos Wasiliew [aut], Hugo Vasconcelos ORCID iD [aut], Carlos Amorim ORCID iD [aut], Diogo Bezerra ORCID iD [aut], Júlia Nascimento Barreto [aut]
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

Documentation:

Reference manual: cagedr.html , cagedr.pdf
Vignettes: Getting started with cagedr (source, R code)
Streaming, cache and data vintages (source, R code)

Downloads:

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): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=cagedr to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.