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:André 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.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

On CRAN:

Conda:

4.48 score 10 exports 27 dependencies

Last updated from:ce3282f0e0. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK157
source / vignettesOK271
linux-releaseOK143
macos-releaseOK154
macos-oldrelOK107
windows-develOK86
windows-releaseOK77
windows-oldrelOK80
wasm-releaseOK126

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-11
Started: 2026-09-11

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-11
Started: 2026-09-11