datasusr-package: datasusr: Fast Access to Brazilian Public Health Data from...

datasusr-packageR Documentation

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

Description

logo

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.

Author(s)

Maintainer: André Leite leite@castlab.org (ORCID)

Authors:

Other contributors:

  • Mark Adler (Author of blast.c from zlib contrib/blast, which the bundled Rust decompressor is a port of) [contributor, copyright holder]

See Also

Useful links:


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