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:
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
Last updated from:011d75b70b. Checks:6 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 163 | ||
| source / vignettes | OK | 210 | ||
| linux-release | OK | 152 | ||
| windows-devel | OK | 96 | ||
| windows-release | OK | 132 | ||
| wasm-release | OK | 126 |
Exports:rais_availablerais_cache_clearrais_cache_dirrais_cache_listrais_downloadrais_fetchrais_filesrais_layoutrais_readrais_stockrais_ufs
Dependencies:archivebitbit64clicliprcpp11crayoncurlgluehmslifecyclemagrittrpillarpkgconfigprettyunitsprogressR6readrrlangstringitibbletidyselecttzdbutf8vctrsvroomwithr
Last update: 2026-09-29
Started: 2026-09-29
Last update: 2026-09-29
Started: 2026-09-29
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| List the RAIS archives published on the PDET/MTE FTP server | rais_available |
| Remove archives from the cache | rais_cache_clear |
| Cache directory used by raisr | rais_cache_dir |
| List the archives currently in the cache | rais_cache_list |
| Download RAIS archives | rais_download |
| Download and read RAIS microdata in one call | rais_fetch |
| Archives needed for a year and a set of states (offline) | rais_files |
| Record layout of the RAIS microdata | rais_layout |
| Read a RAIS archive as a stream | rais_read |
| Consolidate employment stock, admissions and separations | rais_stock |
| The 27 Brazilian states and the regional file that carries each one | rais_ufs |