The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

datasusr: Fast Access to Brazilian Public Health Data from 'DATASUS'

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.

Version: 0.1.0
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)
Published: 2026-05-04
DOI: 10.32614/CRAN.package.datasusr (may not be active yet)
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 at castlab.org>
BugReports: https://github.com/StrategicProjects/datasusr/issues
License: MIT + file LICENSE
URL: https://strategicprojects.github.io/datasusr/, https://github.com/StrategicProjects/datasusr
NeedsCompilation: yes
SystemRequirements: C99
Language: en-US
Materials: README, NEWS
CRAN checks: datasusr results

Documentation:

Reference manual: datasusr.html , datasusr.pdf
Vignettes: Cache and downloads (source, R code)
Comparison with healthbR and microdatasus (source, R code)
Available data sources (source, R code)
Getting started with datasusr (source, R code)
Performance notes (source, R code)

Downloads:

Package source: datasusr_0.1.0.tar.gz
Windows binaries: r-devel: datasusr_0.1.0.zip, r-release: not available, r-oldrel: datasusr_0.1.0.zip
macOS binaries: r-release (arm64): datasusr_0.1.0.tgz, r-oldrel (arm64): datasusr_0.1.0.tgz, r-release (x86_64): datasusr_0.1.0.tgz, r-oldrel (x86_64): datasusr_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=datasusr to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.