Package: cagedr 0.1.0

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

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.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://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/strategicprojects/cagedr/issues

Pkgdown/docs site:https://strategicprojects.github.io

On CRAN:

Conda:

3.00 score 10 exports 27 dependencies

Last updated from:2bb74fbbbe. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK123
source / vignettesOK213
linux-releaseOK141
windows-develOK83
windows-releaseOK79
wasm-releaseOK135

Exports:caged_availablecaged_balancecaged_cache_clearcaged_cache_dircaged_cache_listcaged_downloadcaged_fetchcaged_layoutcaged_periodscaged_read

Dependencies:archivebitbit64clicliprcpp11crayoncurlgluehmslifecyclemagrittrpillarpkgconfigprettyunitsprogressR6readrrlangstringitibbletidyselecttzdbutf8vctrsvroomwithr

Getting started with cagedr
What the Novo CAGED is | Installation | A sample archive ships with the package | Reading one state | Admissions, separations and net balance | Working with the server

Last update: 2026-09-30
Started: 2026-09-30

Streaming, cache and data vintages
How an archive is read | Types | Cache | Vintages: why old months keep changing | The first months of the series

Last update: 2026-09-30
Started: 2026-09-30