cvdprevent
Version 0.2.6 (2026-11-27)
Added
- New script
create_vignette_data.R to generate and store
example datasets used when building package vignettes.
- Stored example API responses in
inst/exdata for use
during vignette rendering, removing the need for live API calls during
package builds.
Changed
- The
using_cvdprevent vignette now uses pre-generated
example data instead of making live API requests during rendering. This
improves reproducibility and reduces the risk of build failures caused
by upstream API changes.
- Documentation examples have been moved from
\donttest{}
to \dontrun{} to prevent execution during automated testing
and package checks.
- Vignette build process updated so that example data are loaded from
a single hidden setup chunk.
- Package metadata updated, including the addition of
{here} to Suggests and updates to the roxygen2
version requirement.
- Updated
.Rbuildignore and .gitignore to
support the revised vignette workflow and package build process.
Fixed
- Resolved vignette and package build issues caused by dependence on
live API responses that could change over time.
- Reduced the likelihood of CRAN test failures resulting from API
drift or temporary API unavailability.
Deprecated
Version 0.2.5 (2026-01-29)
Added
- Additional defensive code in the vignette to better handle
unexpected conditions and improve overall robustness.
Changed
- The validation function
get_valid_time_period_ids() was
updated to ensure it retrieves all valid time periods from the
API. Although this introduces a slight performance slowdown, it provides
greater long-term stability against future API changes.
Fixed
- Corrected an issue in the example
cvd_area_system_level() where an incompatible
TimePeriodID was being produced. The example has been
updated to prevent recurrence and the underlying validation logic has
been strengthened.
Version 0.2.4 (2025-11-11)
Added
Changed
cvd_clear_cache() is exported for end-users to access,
for example to clear stale values from the cache.
Fixed
- Cache defaults to in-memory when the package is used
non-interatively, which should resolve CRAN test issues on certain
builds. When used interactively (most use-cases) will use persistent
disc-based cache that is more convenient for users.
Deprecated
Version 0.2.3 (2025-11-05)
Added
- New function
cvd_external_resource() to retrieve
metadata for external resources linked to CVDPREVENT, including
category, source, type, and tags.
- Support for inequality marker breakdowns via
cvd_indicator_person_timeseries() with expanded
documentation and return structure.
@return documentation blocks added for all major
functions to improve clarity and usability.
Changed
- Improved documentation across all indicator-related functions,
including clearer
@description, @details, and
@seealso sections.
- Enhanced validation logic for
metric_id,
area_id, and time_period_id parameters to
ensure API compatibility.
- Refactored internal processing of nested API responses for better
stability and readability.
Fixed
- Corrected handling of empty or malformed API responses in
cvd_indicator_group() and
cvd_indicator_pathway_group().
- Resolved issue where system-level comparison functions failed to
relocate nested
ComparisonData correctly.
Deprecated
cvdprevent 0.2.2
cvdprevent 0.1.0