{
  "_id": "6abd180199f7aa8c6aa4f105",
  "Package": "raisr",
  "Title": "Access 'RAIS' Microdata from the Brazilian Ministry of Labour",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"André\", \"Leite\", email = \"leite@castlab.org\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-4718-9766\")),\nperson(\"Marcos\", \"Wasiliew\", email = \"marcos.wasiliew@gmail.com\", role = \"aut\",\ncomment = c(ORCID = \"0009-0004-4694-3159\")),\nperson(\"Hugo\", \"Vasconcelos\", email = \"hugo.vasconcelos@ufpe.br\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-6249-0920\")),\nperson(\"Carlos\", \"Amorim\", email = \"carlos.agaf@ufpe.br\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-6315-8305\")),\nperson(\"Diogo\", \"Bezerra\", email = \"diogo.bezerra@ufpe.br\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-1216-8674\")),\nperson(\"Júlia\", \"Nascimento Barreto\",\nemail = \"juliabarreto@gd.seplag.pe.gov.br\", role = \"aut\",\ncomment = c(ORCID = \"0009-0004-2851-7770\")))",
  "Description": "Download and read the public, non-identified microdata of\nthe 'RAIS' (Relação Anual de Informações Sociais), the annual\ncensus of formal employment relationships and establishments\npublished by the Brazilian Ministry of Labour and Employment\nthrough the 'PDET' FTP server\n<ftp://ftp.mtps.gov.br/pdet/microdados/RAIS/>. Lists the years\nand archives available on the server, resolves which regional\nor state archive holds a given state, downloads it with an\nidempotent local cache, and reads the '7z' archives as a\nstream, filtering by state and selecting columns before\nanything is kept in memory, so that a single state can be\nextracted from a regional file of tens of millions of records.\nHandles the two header generations of the files (up to the\n'RAIS' 2022 and from the 'RAIS' 2023 onwards) with the same\nnormalized column names, provides the official record layout\nand a helper to consolidate the employment stock, admissions,\nseparations and December payroll.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "SystemRequirements": "libarchive (via the 'archive' package)",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/StrategicProjects/raisr,\nhttps://strategicprojects.github.io/raisr/",
  "BugReports": "https://github.com/StrategicProjects/raisr/issues",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libarchive-dev libicu-dev libssl-dev libx11-dev",
  "Repository": "https://strategicprojects.r-universe.dev",
  "Date/Publication": "2026-09-29 13:59:42 UTC",
  "RemoteUrl": "https://github.com/strategicprojects/raisr",
  "RemoteRef": "HEAD",
  "RemoteSha": "61cc707e68902d268499b6cebbe52638f8903381",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-30 14:04:51 UTC",
    "User": "root"
  },
  "Author": "André Leite [aut, cre] (ORCID: <https://orcid.org/0000-0002-4718-9766>),\nMarcos Wasiliew [aut] (ORCID: <https://orcid.org/0009-0004-4694-3159>),\nHugo Vasconcelos [aut] (ORCID: <https://orcid.org/0000-0001-6249-0920>),\nCarlos Amorim [aut] (ORCID: <https://orcid.org/0000-0001-6315-8305>),\nDiogo Bezerra [aut] (ORCID: <https://orcid.org/0000-0002-1216-8674>),\nJúlia Nascimento Barreto [aut] (ORCID:\n<https://orcid.org/0009-0004-2851-7770>)",
  "Maintainer": "André Leite <leite@castlab.org>",
  "_user": "strategicprojects",
  "_type": "src",
  "_file": "raisr_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/2b04185407d8d8fa171167c870dee49c90bfa4fe8abdab8e2d71f9f4e77156cc",
  "_filesize": 186847,
  "_sha256": "2b04185407d8d8fa171167c870dee49c90bfa4fe8abdab8e2d71f9f4e77156cc",
  "_expires": "2027-01-08T14:09:03.000Z",
  "_created": "2026-09-30T14:04:51.000Z",
  "_published": "2026-09-30T14:09:05.988Z",
  "_jobs": [
    {
      "job": 109922080647,
      "time": 317,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11102951076"
    },
    {
      "job": 109924394355,
      "time": 83,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11103900614"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36725711460",
  "_status": "success",
  "_upstream": "https://github.com/strategicprojects/raisr",
  "_commit": {
    "id": "61cc707e68902d268499b6cebbe52638f8903381",
    "author": "André Leite <leite@de.ufpe.br>",
    "committer": "André Leite <leite@de.ufpe.br>",
    "message": "Spell the maintainer's name as André Leite\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n",
    "time": 1790690382
  },
  "_maintainer": {
    "name": "André Leite",
    "email": "leite@castlab.org",
    "orcid": "0000-0002-4718-9766"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "archive",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "cli",
      "version": ">= 3.6.0",
      "role": "Imports"
    },
    {
      "package": "curl",
      "version": ">= 5.0.0",
      "role": "Imports"
    },
    {
      "package": "readr",
      "version": ">= 2.1.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "version": ">= 1.7.0",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.2.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "strategicprojects",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-38",
      "n": 3
    },
    {
      "week": "2026-40",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "milkway",
      "count": 5,
      "uuid": 7375849
    }
  ],
  "_userbio": {
    "uuid": 127886513,
    "type": "organization",
    "name": "Projetos Estratégicos",
    "followers": 14,
    "description": "Repositório de código da Assessoria Especial de Projetos Estratégicos."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/raisr"
  },
  "_devurl": "https://github.com/strategicprojects/raisr",
  "_pkgdown": "https://strategicprojects.github.io/raisr/",
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/raisr.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/strategicprojects/raisr",
  "_realowner": "strategicprojects",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-09-29"
    }
  ],
  "_exports": [
    "rais_available",
    "rais_cache_clear",
    "rais_cache_dir",
    "rais_cache_list",
    "rais_download",
    "rais_fetch",
    "rais_files",
    "rais_layout",
    "rais_read",
    "rais_stock",
    "rais_ufs"
  ],
  "_help": [
    {
      "page": "rais_available",
      "title": "List the RAIS archives published on the PDET/MTE FTP server",
      "topics": [
        "rais_available"
      ]
    },
    {
      "page": "rais_cache_clear",
      "title": "Remove archives from the cache",
      "topics": [
        "rais_cache_clear"
      ]
    },
    {
      "page": "rais_cache_dir",
      "title": "Cache directory used by raisr",
      "topics": [
        "rais_cache_dir"
      ]
    },
    {
      "page": "rais_cache_list",
      "title": "List the archives currently in the cache",
      "topics": [
        "rais_cache_list"
      ]
    },
    {
      "page": "rais_download",
      "title": "Download RAIS archives",
      "topics": [
        "rais_download"
      ]
    },
    {
      "page": "rais_fetch",
      "title": "Download and read RAIS microdata in one call",
      "topics": [
        "rais_fetch"
      ]
    },
    {
      "page": "rais_files",
      "title": "Archives needed for a year and a set of states (offline)",
      "topics": [
        "rais_files"
      ]
    },
    {
      "page": "rais_layout",
      "title": "Record layout of the RAIS microdata",
      "topics": [
        "rais_layout"
      ]
    },
    {
      "page": "rais_read",
      "title": "Read a RAIS archive as a stream",
      "topics": [
        "rais_read"
      ]
    },
    {
      "page": "rais_stock",
      "title": "Consolidate employment stock, admissions and separations",
      "topics": [
        "rais_stock"
      ]
    },
    {
      "page": "rais_ufs",
      "title": "The 27 Brazilian states and the regional file that carries each one",
      "topics": [
        "rais_ufs"
      ]
    }
  ],
  "_pkglogo": "https://github.com/strategicprojects/raisr/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/strategicprojects/raisr/raw/HEAD/README.md",
  "_rundeps": [
    "archive",
    "bit",
    "bit64",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "curl",
    "glue",
    "hms",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "R6",
    "readr",
    "rlang",
    "stringi",
    "tibble",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting started with raisr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What the RAIS is",
        "Installation",
        "Sample archives ship with the package",
        "Reading one state",
        "Stock, admissions, separations and payroll",
        "Establishments",
        "Working with the server"
      ],
      "created": "2026-09-18 15:32:56",
      "modified": "2026-09-18 15:32:56",
      "commits": 1
    },
    {
      "source": "streaming-and-cache.Rmd",
      "filename": "streaming-and-cache.html",
      "title": "Streaming, cache and file generations",
      "engine": "knitr::rmarkdown",
      "headings": [
        "How an archive is read",
        "Two header generations",
        "The cache",
        "Editions: final, partial and legacy",
        "Network"
      ],
      "created": "2026-09-18 15:32:56",
      "modified": "2026-09-18 15:32:56",
      "commits": 1
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "raisr",
  "_universes": [
    "strategicprojects"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-30T14:08:00.000Z",
      "distro": "resolute",
      "commit": "61cc707e68902d268499b6cebbe52638f8903381",
      "fileid": "https://r2.ropensci.org/0ec2287876f5e2fcec76c78e310a771f4efba89d42fc5b2c17225d4e6f622584",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36725711460"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-30T14:07:34.000Z",
      "distro": "resolute",
      "commit": "61cc707e68902d268499b6cebbe52638f8903381",
      "fileid": "https://r2.ropensci.org/4632f6ffa6dbc396dc8e39451497aafc78b4d5f436bf47482591b3dbd0a75be8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36725711460"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-09-30T14:07:45.000Z",
      "commit": "61cc707e68902d268499b6cebbe52638f8903381",
      "fileid": "https://r2.ropensci.org/be7058943502cac825c6d470b06f7e795c64dd8bb6bd3c2653f830d276320e16",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36725711460"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-09-30T14:08:10.000Z",
      "commit": "61cc707e68902d268499b6cebbe52638f8903381",
      "fileid": "https://r2.ropensci.org/a691782256d22d8629d1b4d5163b240dc27256ac726cae994bbf92c033182951",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36725711460"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-09-30T14:07:29.000Z",
      "commit": "61cc707e68902d268499b6cebbe52638f8903381",
      "fileid": "https://r2.ropensci.org/147539175b06f4666553408b3daf5a180589452ea36280d796e0b55774f42868",
      "status": "success",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36725711460"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-30T14:06:03.000Z",
      "commit": "61cc707e68902d268499b6cebbe52638f8903381",
      "fileid": "https://r2.ropensci.org/a7c8cba249a822765203c53e7ae2b7fc6a059c39e77898af0b5d1bbd84900527",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36725711460"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-30T14:06:10.000Z",
      "commit": "61cc707e68902d268499b6cebbe52638f8903381",
      "fileid": "https://r2.ropensci.org/42fddefbdb27cf66acc206ef8380f8ba249bb9f43635396b948f23e52a9073bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36725711460"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-30T14:06:02.000Z",
      "commit": "61cc707e68902d268499b6cebbe52638f8903381",
      "fileid": "https://r2.ropensci.org/0cdfcefc308854537f3da3406b7248c3d5af26aac89a1e9b53629c56450e7a38",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36725711460"
    }
  ]
}