Skip to content

datasusr

0.1.0

Fast Access to Brazilian Public Health Data from 'DATASUS'

0packages depend
930downloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Andre LeiteFirst published 2026-05-041 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 2.4 min · r-devel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-05
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 441 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
63%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

930
CRAN downloads in the past year
Rank #15,119 · ~3/day · ~78/mo
Daily download trend is not available in this view yet.
20030 days
68990 days
9301 year
Compare downloads with other packages →
Also on90 r2u13 autocran

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
0Releases
14Commits
1Contributors
14 commits · Last activity 2026-06-29

Stars over time

2026-07-07 · 02026-07-26 · 1

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/strategicprojects/datasusr on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Development tooling

AI-assisted toolingBeta

Uses AI-assisted development tooling (declared in repo)

Earliest detected marker: claude on 2026-04-29

claude

Most recent: claude on 2026-04-29

Evidence
  • claude: on or before 2026-04-29 · evidence B, D
How this is detected·Detection ruleset v2 (updated 2026-07-29)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (5)
Author, Maintainer
Contributors (1)
Contributor, Copyright holder
Copyright holders (1)
Contributor, Copyright holder
Package Timeline

1 release. R releases are shown for context.

  • 0.1.0Latest
    2026-05-04 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-04
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
82 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("datasusr")
Leite, A., Adler, M., Amorin, C., Bezerra, D., Vasconcelos, H., & Wasilew, M. (2026). datasusr: Fast Access to Brazilian Public Health Data from 'DATASUS' (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.datasusr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for datasusr version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy