Package: datasusr 0.1.0

Andre Leite
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.
Authors:
datasusr_0.1.0.tar.gz
datasusr_0.1.0.zip(r-4.7)datasusr_0.1.0.zip(r-4.6)datasusr_0.1.0.zip(r-4.5)
datasusr_0.1.0.tgz(r-4.6-x86_64)datasusr_0.1.0.tgz(r-4.6-arm64)datasusr_0.1.0.tgz(r-4.5-x86_64)datasusr_0.1.0.tgz(r-4.5-arm64)
datasusr_0.1.0.tar.gz(r-4.7-arm64)datasusr_0.1.0.tar.gz(r-4.7-x86_64)datasusr_0.1.0.tar.gz(r-4.6-arm64)datasusr_0.1.0.tar.gz(r-4.6-x86_64)
datasusr_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
datasusr/json (API)
| # Install 'datasusr' in R: |
| install.packages('datasusr', repos = c('https://strategicprojects.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/strategicprojects/datasusr/issues
Pkgdown/docs site:https://strategicprojects.github.io
Last updated from:12b4e7f68e. Checks:11 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | NOTE | 161 | ||
| linux-devel-x86_64 | NOTE | 129 | ||
| source / vignettes | OK | 188 | ||
| linux-release-arm64 | NOTE | 142 | ||
| linux-release-x86_64 | NOTE | 140 | ||
| macos-release-arm64 | NOTE | 131 | ||
| macos-release-x86_64 | NOTE | 139 | ||
| macos-oldrel-arm64 | NOTE | 118 | ||
| macos-oldrel-x86_64 | NOTE | 147 | ||
| windows-devel | NOTE | 106 | ||
| windows-release | NOTE | 102 | ||
| windows-oldrel | NOTE | 89 | ||
| wasm-release | OK | 117 |
Exports:datasus_build_pathdatasus_cache_cleardatasus_cache_dirdatasus_cache_infodatasus_cache_listdatasus_cache_prunedatasus_docs_urldatasus_downloaddatasus_fetchdatasus_file_typesdatasus_ftp_lsdatasus_get_territorydatasus_list_filesdatasus_modalitiesdatasus_sourcesdatasus_ufsformat_bytesread_datasus_dbc
Dependencies:clicpp11curldplyrgenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr
Last update: 2026-04-29
Started: 2026-04-01
Last update: 2026-04-29
Started: 2026-04-01
Last update: 2026-04-01
Started: 2026-04-01
Last update: 2026-04-01
Started: 2026-04-01
Last update: 2026-04-01
Started: 2026-04-01
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Build DATASUS FTP paths from filters | datasus_build_path |
| Clear cached DATASUS files | datasus_cache_clear |
| Resolve the datasusr cache directory | datasus_cache_dir |
| Summarise the datasusr cache | datasus_cache_info |
| List cached DATASUS files | datasus_cache_list |
| Prune the datasusr cache | datasus_cache_prune |
| Get FTP URLs for DATASUS documentation | datasus_docs_url |
| Download DATASUS files | datasus_download |
| Fetch DATASUS data in one step | datasus_fetch |
| List DATASUS file types | datasus_file_types |
| List files and directories from the DATASUS FTP | datasus_ftp_ls |
| Download DATASUS territorial tables | datasus_get_territory |
| List available DATASUS files | datasus_list_files |
| List DATASUS modalities | datasus_modalities |
| List DATASUS data sources | datasus_sources |
| List UF codes used by DATASUS downloads | datasus_ufs |
| Format byte sizes for display | format_bytes |
| Read DATASUS DBC files | read_datasus_dbc |