Skip to content

datasusr

Fast Access to Brazilian Public Health Data from 'DATASUS'

v0.1.0 · May 4, 2026 · MIT + file LICENSE

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.

Downloads

CRAN

237

Last 30 days

18376th

509

Last 90 days

509

Last year

Trend: -12.9% (30d vs prior 30d)

r2u CRAN

44

Last 30 days

44

Last 90 days

44

Last year

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 5, 2026

Dependency Network

Dependencies Reverse dependencies cli curl dplyr purrr rlang (>= 1.0.0) stringr tibble tidyr datasusr

Version History

1 tracked
new 0.1.0 May 4, 2026