Package: datasusr
Type: Package
Title: Fast Access to Brazilian Public Health Data from 'DATASUS'
Version: 0.2.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")),
    person("Mark", "Adler", role = c("ctb", "cph"),
           comment = "Author of blast.c from zlib contrib/blast, which the bundled
               Rust decompressor is a port of"))
Description: Provides fast, in-memory reading of 'DATASUS' 'DBC' files, along
    with a catalog of public health data sources, 'FTP' file discovery,
    caching downloads, and a high-level datasus_fetch() function that lists,
    downloads, and reads files in a single call. The reader is the 'Rust'
    crate 'datasus-core', bundled with the package: it decodes 'PKWare DCL'
    compressed 'DBC' files with a port of the 'blast' decompressor from
    'zlib' contrib/blast and parses 'DBF' records directly for efficient
    import into tibbles. See the 'DATASUS' file transfer site
    <https://datasus.saude.gov.br> and Adler (2003)
    <https://github.com/madler/zlib/tree/master/contrib/blast> for details on
    the underlying data and compression format.
License: MIT + file LICENSE
URL: https://strategicprojects.github.io/datasusr/,
        https://github.com/StrategicProjects/datasusr
BugReports: https://github.com/StrategicProjects/datasusr/issues
Encoding: UTF-8
Language: en-US
Depends: R (>= 4.1.0)
Imports: cli, curl (>= 5.0.0), dplyr (>= 1.1.0), purrr, rlang (>=
        1.0.0), stringr, tibble, tidyr
Suggests: knitr, pkgdown, rmarkdown, testthat (>= 3.1.7)
VignetteBuilder: knitr
Config/testthat/edition: 3
NeedsCompilation: yes
SystemRequirements: Cargo (Rust's package manager), rustc >= 1.81
Config/roxygen2/version: 8.0.0
Packaged: 2026-11-18 10:38:29 UTC; leite
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>),
  Mark Adler [ctb, cph] (Author of blast.c from zlib contrib/blast, which
    the bundled Rust decompressor is a port of)
Maintainer: André Leite <leite@castlab.org>
Repository: CRAN
Date/Publication: 2026-11-18 11:20:02 UTC
Built: R 4.7.0; x86_64-w64-mingw32; 2026-11-18 18:03:44 UTC; windows
Archs: x64
