Package: raisr 0.1.0

Andre Leite

raisr: Access 'RAIS' Microdata from the Brazilian Ministry of Labour

Download and read the public, non-identified microdata of the 'RAIS' (Relação Anual de Informações Sociais), the annual census of formal employment relationships and establishments published by the Brazilian Ministry of Labour and Employment through the 'PDET' FTP server <ftp://ftp.mtps.gov.br/pdet/microdados/RAIS/>. Lists the years and archives available on the server, resolves which regional or state archive holds a given state, downloads it with an idempotent local cache, and reads the '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 from a regional file of tens of millions of records. Handles the two header generations of the files (up to the 'RAIS' 2022 and from the 'RAIS' 2023 onwards) with the same normalized column names, provides the official record layout and a helper to consolidate the employment stock, admissions, separations and December payroll.

Authors:Andre Leite [aut, cre], Marcos Wasiliew [aut], Hugo Vasconcelos [aut], Carlos Amorim [aut], Diogo Bezerra [aut], Júlia Nascimento Barreto [aut]

raisr_0.1.0.tar.gz
raisr_0.1.0.zip(r-4.7-any)raisr_0.1.0.zip(r-4.6-any)
raisr_0.1.0.tar.gz(r-4.7-any)raisr_0.1.0.tar.gz(r-4.6-any)
raisr_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
raisr/json (API)

# Install 'raisr' in R:
install.packages('raisr', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

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

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

On CRAN:

Conda:

3.00 score 11 exports 27 dependencies

Last updated from:011d75b70b. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK163
source / vignettesOK210
linux-releaseOK152
windows-develOK96
windows-releaseOK132
wasm-releaseOK126

Exports:rais_availablerais_cache_clearrais_cache_dirrais_cache_listrais_downloadrais_fetchrais_filesrais_layoutrais_readrais_stockrais_ufs

Dependencies:archivebitbit64clicliprcpp11crayoncurlgluehmslifecyclemagrittrpillarpkgconfigprettyunitsprogressR6readrrlangstringitibbletidyselecttzdbutf8vctrsvroomwithr

Getting started with raisr
What the RAIS is | Installation | Sample archives ship with the package | Reading one state | Stock, admissions, separations and payroll | Establishments | Working with the server

Last update: 2026-09-29
Started: 2026-09-29

Streaming, cache and file generations
How an archive is read | Two header generations | The cache | Editions: final, partial and legacy | Network

Last update: 2026-09-29
Started: 2026-09-29