getDOSE(),
getDOSE_geom() and matchDOSE() return
NULL invisibly with an informative message instead of
throwing an error when there is no internet connection, a download
fails, or a downloaded file is corrupt. stop() is still
used for invalid user input.regional-convergence vignette is now precomputed
(source in vignettes/regional-convergence.Rmd.orig,
regenerated with dev/precompute-vignettes.R), so no
network-dependent code runs at R CMD check time.cache = TRUE argument in getDOSE(),
getDOSE_geom() and matchDOSE(): opt-in
persistent storage of downloaded data in
tools::R_user_dir("subincomeR", "cache"), so the data (up
to ~769 MB for the geometries) is reused across R sessions instead of
being re-downloaded every session. The default behavior (storage in
tempdir()) is unchanged.subincomeR_cache_dir() and
subincomeR_cache_clear() to locate and delete the
persistent cache.R CMD check (the
tests/testthat.R runner was missing), with new network-free
tests covering the offline and failed-download paths via mocked
connectivity.download.file() fallback now
checks its return status, partial or corrupt downloads are always
removed, the download timeout is raised to 600s, and the deprecated
wininet method was dropped.matchDOSE() now validates all its arguments before any
network activity.%>%) with the native R
pipe (|>) in package code, addressing the CRAN NOTE
flagged after sf stopped re-exporting %>%
(see r-spatial/sf#2607)getDOSE_geom() function to explicitly
download the geometries of the sub-national regions.gpkg
file with the sub-national geometries would be storedmatchDOSE() to skip the first step of the geocoding
process
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.