Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c8b4bc1
Add initial fns from pressure testing report
pratikunterwegs Mar 12, 2026
db03465
Move pressure testing plotting
pratikunterwegs Mar 12, 2026
50f6b0d
Clean up funs and add constants
pratikunterwegs Mar 12, 2026
13d6244
Clean up fns and add constants
pratikunterwegs Mar 13, 2026
8aa8494
Rename files
pratikunterwegs Mar 13, 2026
de1eda6
Add checks and docs for pressure testing fns
pratikunterwegs Apr 20, 2026
46d3d97
Add pkg constants
pratikunterwegs Apr 20, 2026
63e5871
Add pkg helpers
pratikunterwegs Apr 20, 2026
ffff840
WIP separate plot prep from plot code
pratikunterwegs Apr 20, 2026
d0237fb
WIP add docs and pkg infra
pratikunterwegs Apr 21, 2026
4a52fbb
Reorganise docs
pratikunterwegs Apr 21, 2026
bba30c5
WIP plotting and prep fns impact diagnostics
pratikunterwegs Apr 21, 2026
a455c5a
Add constants
pratikunterwegs Apr 21, 2026
beb2a07
Update plot prep and plot fns
pratikunterwegs Apr 21, 2026
0424f17
Fixes from initial test run
pratikunterwegs Apr 22, 2026
386be9b
Update infra, bump to v0.0.4
pratikunterwegs Apr 22, 2026
43753fb
Rename fn file, fix arg name
pratikunterwegs Apr 22, 2026
14f1829
Adding pine countries to constants for impact plotting key countries
zegibney Apr 29, 2026
0d446cd
Adding plotting functions from rapid-model-run-impact report which pl…
zegibney Apr 29, 2026
fce44b8
Fix for enabling package checks
zegibney Jun 1, 2026
291e905
Adding more meaningful checks and assertions
zegibney Jun 1, 2026
8a1be98
Defining example data and fvps dataframes
zegibney Jun 1, 2026
876048a
Adding impact plots to pkgdown documentation
zegibney Jun 1, 2026
a87d836
Merge branch 'develop' into develop_zoe
zegibney Jul 3, 2026
4fbc819
Sync _pkgdown.yml with develop
zegibney Jul 8, 2026
a12d1dc
Added new functions
zegibney Jul 8, 2026
9586817
Allow R CMD check on PRs
pratikunterwegs Jul 9, 2026
376f52f
Fix linting YAML
pratikunterwegs Jul 9, 2026
5286bd0
Fix formatting
pratikunterwegs Jul 9, 2026
c1d303e
Rework plotting fns
pratikunterwegs Jul 9, 2026
7dbdda8
Add tests and tweaks, bump to v0.0.5
pratikunterwegs Jul 9, 2026
7a2ae26
Fix docs and spellings
pratikunterwegs Jul 13, 2026
fccb1c0
Fixes from review
pratikunterwegs Jul 15, 2026
9cd1551
Fix country facetting
pratikunterwegs Jul 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main, master, develop]

name: R-CMD-check

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/lint-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
on:
workflow_dispatch:
pull_request:
branches: [main, master]
paths:
- '**.R'
- '**.Rmd'
Expand Down
3 changes: 3 additions & 0 deletions .lintr
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ linters: all_linters(
object_length_linter = NULL # due to length of method names
)
exclusions: list(
"R/fn_plotting_impact.R" = list(
object_overwrite_linter = Inf
),
"tests/testthat.R" = list(
unused_import_linter = Inf,
undesirable_function_linter = Inf
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: vimcheck
Title: Diagnostics for Vaccine Impact Modelling Consortium Burden and
Impact Estimates
Version: 0.0.4
Version: 0.0.5
Authors@R: c(
person("Pratik", "Gupte", , "p.gupte24@imperial.ac.uk", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5294-7819")),
Expand Down
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export(MIN_TS_MONTH)
export(MIN_TS_YEAR)
export(N_TS_MIN_CHARS)
export(N_TS_YEAR_CHARS)
export(PINE)
export(basic_burden_sanity)
export(burden_outcome_names)
export(check_demography_alignment)
Expand All @@ -31,12 +32,14 @@ export(gen_national_iqr)
export(generate_diffs)
export(plot_age_patterns)
export(plot_compare_demography)
export(plot_coverage_fvps)
export(plot_coverage_set)
export(plot_cumul)
export(plot_diff)
export(plot_fvp)
export(plot_global_burden)
export(plot_global_burden_decades)
export(plot_impact)
export(plot_modelling_group_variation)
export(plot_sig_diff)
export(plot_vaccine_gavi)
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# vimcheck 0.0.5

- Added functions to plot impact and FVPs and coverage.

# vimcheck 0.0.4

- Added impact diagnostics functions in `R/fn_impact_diagnostics.R`.
Expand Down
8 changes: 8 additions & 0 deletions R/constants.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,11 @@ DEF_TOUCHSTONE_OLD_OLD <- "202110"
#'
#' @export
COLOUR_VIMC <- "#008080"

#' @name constants
#'
#' @examples
#' PINE
#'
#' @export
PINE <- c("PAK", "IND", "NGA", "ETH")
40 changes: 40 additions & 0 deletions R/example_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,28 @@
#' @source Prepared by the VIMC secretariat.
"eg_fvps"

#' A second FVP data example
#'
#' Exampled data for fully-vaccinated persons, created manually from arbitrary
#' data.
#'
#' @format ## `eg_fvps_2`
#' A data frame with 4 rows and 7 columns:
#' \describe{
#' \item{country}{Country name as ISO 3 character code.}
#' \item{year}{Year.}
#' \item{activity_type}{Vaccination activity identifier.}
#' \item{scenario_type}{Scenario type name.}
#' \item{vaccine}{Vaccine identifier.}
#' \item{coverage_adjusted}{Ratio of adjusted FVPs to adjusted target.}
#' \item{fvps}{Count of fully vaccinated persons.}
#' }
#'
#' @keywords data
#'
#' @source Example data prepared by the VIMC secretariat.
"eg_fvps_2"

#' Example of impact data
#'
#' Example of vaccine impact data taken from data used to test \pkg{vimpact}.
Expand All @@ -139,3 +161,21 @@
#'
#' @source Prepared by the VIMC secretariat.
"eg_impact"

#' Second example of impact data
#'
#' @format ## `eg_impact_2`
#' A data frame with 4 rows and 6 columns:
#' \describe{
#' \item{country}{Example country identifier.}
#' \item{year}{Year.}
#' \item{birth_cohort}{Numeric for the birth year.}
#' \item{burden_outcome}{Outcome identifier.}
#' \item{impact}{Numeric for impact.}
#' \item{short_name}{Example identifier.}
#' }
#'
#' @keywords data
#'
#' @source Prepared manually by the VIMC secretariat.
"eg_impact_2"
Loading
Loading