Package: cagedr
Title: Access Novo CAGED Microdata from the Brazilian Ministry of
        Labour
Version: 0.1.0
Authors@R: c(
    person("Andre", "Leite", email = "leite@castlab.org", role = c("aut", "cre"),
           comment = c(ORCID = "0000-0002-4718-9766")),
    person("Marcos", "Wasiliew", email = "marcos.wasiliew@sepe.pe.gov.br", role = "aut"),
    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"))
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)
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
NeedsCompilation: no
Packaged: 2026-09-22 12:05:26 UTC; leite
Author: Andre Leite [aut, cre] (ORCID: <https://orcid.org/0000-0002-4718-9766>),
  Marcos Wasiliew [aut],
  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]
Maintainer: Andre Leite <leite@castlab.org>
Repository: CRAN
Date/Publication: 2026-09-30 12:40:14 UTC
