Package: cagedr
Title: Access Novo CAGED Microdata from the Brazilian Ministry of
        Labour
Version: 0.1.0
Authors@R: c(
    person("André", "Leite", email = "leite@castlab.org", role = c("aut", "cre"),
           comment = c(ORCID = "0000-0002-4718-9766")),
    person("Marcos", "Wasiliew", email = "marcos.wasiliew@gmail.com", role = "aut",
           comment = c(ORCID = "0009-0004-4694-3159")),
    person("Hugo", "Vasconcelos", email = "hugo.vasconcelos@ufpe.br", role = "aut",
           comment = c(ORCID = "0000-0001-6249-0920")),
    person("Carlos", "Amorim", email = "carlos.agaf@ufpe.br", role = "aut",
           comment = c(ORCID = "0000-0001-6315-8305")),
    person("Diogo", "Bezerra", email = "diogo.bezerra@ufpe.br", role = "aut",
           comment = c(ORCID = "0000-0002-1216-8674")),
    person("Júlia", "Nascimento Barreto",
           email = "juliabarreto@gd.seplag.pe.gov.br", role = "aut",
           comment = c(ORCID = "0009-0004-2851-7770")))
Description: 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.
License: MIT + file LICENSE
Encoding: UTF-8
Language: en-US
Depends: R (>= 4.1.0)
Roxygen: list(markdown = TRUE)
Imports: archive (>= 1.1.0), cli (>= 3.6.0), curl (>= 5.0.0), readr (>=
        2.1.0), rlang (>= 1.1.0), stringi (>= 1.7.0), tibble (>= 3.2.0)
Suggests: dplyr, knitr, rmarkdown, testthat (>= 3.0.0), withr
SystemRequirements: libarchive (via the 'archive' package)
Config/testthat/edition: 3
VignetteBuilder: knitr
URL: https://github.com/StrategicProjects/cagedr,
        https://strategicprojects.github.io/cagedr/
BugReports: https://github.com/StrategicProjects/cagedr/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:40 UTC
RemoteUrl: https://github.com/strategicprojects/cagedr
RemoteRef: HEAD
RemoteSha: ce3282f0e09a2501188d93dbbaf4c885ccc28aca
NeedsCompilation: no
Packaged: 2026-10-01 13:46:51 UTC; root
Author: André Leite [aut, cre] (ORCID: <https://orcid.org/0000-0002-4718-9766>),
  Marcos Wasiliew [aut] (ORCID: <https://orcid.org/0009-0004-4694-3159>),
  Hugo Vasconcelos [aut] (ORCID: <https://orcid.org/0000-0001-6249-0920>),
  Carlos Amorim [aut] (ORCID: <https://orcid.org/0000-0001-6315-8305>),
  Diogo Bezerra [aut] (ORCID: <https://orcid.org/0000-0002-1216-8674>),
  Júlia Nascimento Barreto [aut] (ORCID:
    <https://orcid.org/0009-0004-2851-7770>)
Maintainer: André Leite <leite@castlab.org>
