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

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.

Package details

AuthorAndré 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)
MaintainerAndré Leite <leite@castlab.org>
LicenseMIT + file LICENSE
Version0.2.0
URL https://strategicprojects.github.io/datasusr/  https://github.com/StrategicProjects/datasusr 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("datasusr")

Try the datasusr package in your browser

Any scripts or data that you put into this service are public.

datasusr documentation built on Nov. 18, 2026, 5:10 p.m.