Skip to content

vital

Tidy Analysis Tools for Mortality, Fertility, Migration and Population Data

v2.0.3 · Feb 12, 2026 · GPL-3

Description

Analysing vital statistics based on tools consistent with the tidyverse. Tools are provided for data visualization, life table calculations, computing net migration numbers, Lee-Carter modelling; functional data modelling and forecasting.

Downloads

CRAN

307

Last 30 days

15016th

692

Last 90 days

3.4K

Last year

Trend: +69.6% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

36

Last 90 days

187

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

0

Last 7 days

25

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘HMDHFDplus’

Package suggested but not available for checking: ‘demography’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

66,279

Files

134

Compiled share

0%

Has compiled src

No

Language breakdown

R 7,717 (11.6%)Tests 56,201 (84.8%)Docs 1,927 (2.9%)Vignettes 434 (0.7%)

API

Exported functions

50

Internal functions

177

Recent export changes

v2.0.0+14 APC, CBD, GAPC +11 more
v1.1.0+1 vital_vars

Testing & CI

Has tests

Yes

Test-to-code ratio

7.28

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

96.9%

\dontrun example ratio

21.1%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

11.1%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2024-06-04

Latest release

2026-02-13

Avg cadence

46 days

Cold removal rate

Dep drift

5

LOC over versions

v1.0.0: 51,716 LOCv1.1.0: 51,759 LOCv2.0.0: 66,203 LOCv2.0.1: 66,203 LOCv2.0.2: 66,203 LOCv2.0.3: 66,279 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies cobs distributional dplyr fable fabletools ggplot2 HMDHFDplus mgcv MortalityLaws patchwork purrr rlang StMoMo tibble tidyr +3 more dependencies vital

Version History

7 tracked
new 2.0.3 Mar 10, 2026
updated 2.0.3 ← 2.0.2 diff Feb 12, 2026
updated 2.0.2 ← 2.0.1 diff Jan 18, 2026
updated 2.0.1 ← 2.0.0 diff Oct 5, 2025
updated 2.0.0 ← 1.1.0 diff Aug 19, 2025
updated 1.1.0 ← 1.0.0 diff Jun 20, 2024
new 1.0.0 Jun 3, 2024