sinan_dengue: Read current SINAN dengue microdata

View source: R/opendatasus.R

sinan_dengueR Documentation

Read current SINAN dengue microdata

Description

Downloads the annual OpenDataSUS resources. This complements the aggregated legacy TABNET interface available from 'sinan("dengue")'.

Usage

sinan_dengue(
  ano = "last",
  formato = "CSV",
  destino = NULL,
  cache = TRUE,
  atualizar = FALSE,
  n_max = Inf,
  ...
)

Arguments

ano

Dataset year or '"last"'.

formato

'"CSV"' or '"JSON"'.

destino

Optional destination file or existing directory.

cache

Whether to reuse the local cache.

atualizar

Whether to force a new metadata query and download.

n_max

Maximum number of CSV rows to read.

...

Additional arguments passed to the underlying reader.

Value

The parsed OpenDataSUS resource.

Examples


old_options <- options(
  datasus.timeout = 5,
  datasus.download_timeout = 15,
  datasus.max_tries = 1
)
try({
dengue <- sinan_dengue(ano = 2025, n_max = 1000)
})
options(old_options)


datasus documentation built on Oct. 7, 2026, 1:07 a.m.