fetch_datasus() around an internal registry of
supported systems and manifests built from the files actually published
by DataSUS. Each relevant FTP directory is listed only once per call,
avoiding redundant connections and URLs for files that do not
exist.curl directly for directory listings and
downloads, with per-operation timeouts and up to two retries for
transient network failures. Downloads remain sequential, display
transfer progress by default, and no longer modify the global
options("timeout").stop_on_error = FALSE, successfully read files are returned
after a consolidated warning; with stop_on_error = TRUE,
any failure aborts the operation.vars before accumulating results and combines
files only once, reducing repeated copies. When
track_source = TRUE, the source column is
retained even when vars is supplied, and an existing
source column now produces a clear error.vars, and fractional timeout values. Monthly
systems require months, annual systems ignore them with one warning, and
"all" can no longer be combined with individual
states.quiet at the end of the
fetch_datasus() signature. Transfer progress and status
messages, including each file name, are displayed by default; set
quiet = TRUE to hide them. Warnings and errors remain
visible.cli warning alerts when month arguments
or state selections are ignored, including when
quiet = TRUE.cli
formatting, indexed file progress, and one diagnostic item per failed
directory or file.fetch_cadger() and fetch_sigtab()
with shared timeout, retry, and temporary-file cleanup logic, and adds
ZIP integrity and schema validation.read.dbc and reads DBC files
with vendored C code adapted from healthbR. Thanks to
Sidney Bissoli for the open-source code.read_dbc() for local DBC files, with optional
preservation of the column types inferred from DBF metadata.read_dbc() by rejecting directories and empty
or unreadable input files before decompression, validating missing,
unknown-size, and empty decompression output, and wrapping DBF read
failures in contextual errors with stable
microdatasus_dbc_error subclasses.dplyr::recode_values() because
dplyr::case_match() is deprecated.vars,
track_source, multiple states, and auxiliary-table schema
validation. Local file:// fixtures exercise
curl without network access; live DataSUS smoke tests
remain opt-in and are always skipped on CRAN.dev branch as well as
main and master.process_sinan_malaria, fix variable type when
pre-processing the variable NU_IDADE_N (#132)process_sinasc, fix typo when pre-processing
the variable PESO (#141).process_sia, fix typo when pre-processing the
variable PA_MUNPCN (#137).process_cnes for CNES-ST, fix
MICR_REG and DISTRSAN conversion.process_sih, fix NACIONAL and
HOMONIMO codes, add more FAEC_TP codes
(#131).dtplyr package dependence.dtplyr usage due incompatibility on recent
version.process_sinan_chikungunya().process_sim(),
process_sinasc(),process_sinan_zika(),
process_sinan_malaria(),
process_sinan_leishmaniose_visceral(),
process_sinan_leishmaniose_tegumentar(),
process_sinan_dengue(),
process_sinan_chikungunya(),
process_sinan_chagas()).fetch_datasus().NU_IDADE on pre-processing SINAN on old
files.ESPEC variable on
process_sih function (#113).process_cnes function (PR
#112).track_source argument to fetch_datasus
function to create a variable called source with the file
name that originated the row.process_sim due increased
processing time.fetch_datasus.fetch_datasus will return NULL.process_sim shows a progress bar.NEWS.md file to track changes to the
package.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.