Package: datasusr
Type: Package
Title: Fast Access to Brazilian Public Health Data from 'DATASUS'
Version: 0.1.0
Authors@R: c(
    person("Andre", "Leite", email = "leite@castlab.org", role = c("aut", "cre")),
    person("Marcos", "Wasilew", email = "marcos.wasilew@gmail.com", role = "aut"),
    person("Hugo", "Vasconcelos", email = "hugo.vasconcelos@ufpe.br", role = "aut"),
    person("Carlos", "Amorin", email = "carlos.agaf@ufpe.br", role = "aut"),
    person("Diogo", "Bezerra", email = "diogo.bezerra@ufpe.br", role = "aut"),
    person("Mark", "Adler", role = c("ctb", "cph"),
           comment = "Author of bundled blast.c and blast.h from zlib contrib/blast"))
Description: Provides fast, in-memory reading of 'DATASUS' 'DBC' files using
    native 'C' code, 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. Bundles
    the 'blast' decompressor from 'zlib' contrib/blast to decode 'PKWare DCL'
    compressed 'DBC' files 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.0.0)
VignetteBuilder: knitr
Config/testthat/edition: 3
RoxygenNote: 7.3.3
NeedsCompilation: yes
SystemRequirements: C99
Packaged: 2026-04-29 18:58:43 UTC; leite
Author: Andre Leite [aut, cre],
  Marcos Wasilew [aut],
  Hugo Vasconcelos [aut],
  Carlos Amorin [aut],
  Diogo Bezerra [aut],
  Mark Adler [ctb, cph] (Author of bundled blast.c and blast.h from zlib
    contrib/blast)
Maintainer: Andre Leite <leite@castlab.org>
Repository: CRAN
Date/Publication: 2026-05-04 11:50:02 UTC
