datasus: An Interface to Brazilian Public Health Data

Retrieves public health data from the Department of Informatics ('DATASUS') of the Brazilian Unified Health System ('Sistema Unico de Saude', 'SUS') through its online tabulation service and open-data catalog. It covers the Mortality Information System ('SIM'), Live Birth Information System ('SINASC'), Hospital Information System of the Unified Health System ('SIH/SUS'), Outpatient Information System of the Unified Health System ('SIA/SUS'), National Register of Health Establishments ('CNES'), Notifiable Diseases Information System ('SINAN'), National Immunization Program ('PNI'), Cancer Information System ('SISCAN'), and Food and Nutrition Surveillance System ('SISVAN'). Contemporary sources from the 'OpenDataSUS' portal include Events Supposedly Attributable to Vaccination or Immunization ('ESAVI'), influenza-like illness notifications from 'e-SUS Notifica', individual vaccination doses, coronavirus disease 2019 (COVID-19) hospital occupancy, and record-level mortality, live-birth and hospital-admission microdata. Curated schemas, selective columns, multipart downloads and chunk processing support memory-efficient analysis of large files. The package also provides grouped epidemiological indicators, confidence intervals, population-denominator joins, epidemiological calendars, moving averages and direct age standardization. An offline reference from the Brazilian Institute of Geography and Statistics (IBGE) supports territorial codes, joins and completion of geographic time series.

Version: 0.16.1
Depends: R (≥ 4.1.0)
Imports: datasusr (≥ 0.1.0), httr2, jsonlite, readr, rvest, stringi, xml2
Suggests: foreign, knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-09-05
DOI: 10.32614/CRAN.package.datasus
Author: Renato Prado Siqueira [aut, cre]
Maintainer: Renato Prado Siqueira <rpradosiqueira at gmail.com>
BugReports: https://github.com/rpradosiqueira/datasus/issues
License: GPL-3
URL: https://github.com/rpradosiqueira/datasus
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: datasus results

Documentation:

Reference manual: datasus.html , datasus.pdf
Vignettes: Introduction to datasus (source, R code)
Accessing DATASUS tables (source, R code)
Geography and epidemiological analysis (source, R code)
Large files, raw microdata and provenance (source, R code)
Modern surveillance data from OpenDataSUS (source, R code)

Downloads:

Package source: datasus_0.16.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available
Old sources: datasus archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=datasus to link to this page.