Skip to content

demography

2.0.1Package record

Forecasting Mortality, Fertility, Migration and Population Data

4packages dependsuggested by 5
50.3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Functions for demographic analysis including lifetable calculations; Lee-Carter modelling; functional data analysis of mortality rates, fertility rates, net migration numbers; and stochastic population forecasting.

Changes in 2.0.1
  • Updated HMDHFDplus dependency to v2.08+

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 5.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-04-10
Show 2 earlier changesHide 2 earlier changes
  • ERROR13 OK, 1 ERROR2026-04-09
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.0.1
READMEYes · 87 wordsVignettesNoNEWSYes · 100% structured · mentions 2.0.1Citation fileNoWebsiteYes · pkgdown
Help pages
37 (1 internal)includes a package overview page
Examples that run
76%26 run in a plain check · 8 never run
Exported functions with examples
90%
Documented parameters
88%
Return-value docs
95%
Help pages citing references
19%

Downloads

50.3K
CRAN downloads in the past year
Rank #1,896 · ~138/day · ~4.2K/mo
Daily download trend is not available in this view yet.
3.6K30 days
10.4K90 days
50.3K1 year
Compare downloads with other packages →
Also on245 r2u13 autocran213 c2d4u

Repository

78Stars
26Forks
11Open issues
0Open PRs
6Releases
128Commits
6Commit identities
demographyrcranforecastingactuarial
128 commits · Last activity 2025-10-06 · 0% stars, 30d · Default branch at 2.0.1.9000, ahead of CRAN 2.0.1 (checked 2026-10-25)
Responsiveness
How these are sampled
PRs merged (all time)
88%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-18 · 742026-07-07 · 78
PracticesBeta

10 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/robjhyndman/demography on 2026-10-25.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)

The repository owner accepts GitHub Sponsors

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-10-06 · The repository has a site deploy workflow

Reproducibility and dev environment (1)
Makefile
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing demography adds 147 packages (84 with compiled code, 101 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (2)
R >= 3.4forecast
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
4direct
0indirect
Depends 1 · Imports 3
Suggested by 5
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (6)
Author, Maintainer, Copyright holder · added in 2.0
Contributor · added in 2.0
Contributor
Contributor
Contributor
Contributor · added in 1.13

Maintainer since 1.0 (2010)

Listed in earlier versions (3)
Show 3 peopleHide 3 people
no longer listed · 1.0 to 1.22
R Core Team.
no longer listed · 1.13 to 1.14
John Maindonald.
no longer listed · 1.15 to 1.22
Releases (24)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.1Latest
    record
    2025-10-06 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 2.0
    record
    2023-02-08 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 1.22
    record
    2019-04-22 · diff ↗ ·
    removed 19 exports
    fitted.fdm, fitted.lca, forecast.fdm, forecast.lca, forecast.fdmpr, isfe.demogdata, mean.demogdata, median.demogdata, plot.demogdata, plot.errorfdm, plot.lifetable, residuals.fdm, residuals.lca, simulate.fmforecast, simulate.fmforecast2, models.fmforecast, models.fmforecast2, update.fmforecast, update.fmforecast2
  • 1.21
    record
    2019-01-18 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.20
    record
    2017-04-25 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.19
    record
    2017-02-16 · diff ↗
Show 27 earlier eventsHide 27 earlier events

Package metadata

First published
2010-08-12
Total releases
24 / 16 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.4
Bundled data
2.7 MB / 4 files
Download size
2.7 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("demography")
Hyndman, R., R Core Team, Booth, H., Maindonald, J., Tickle, L., & Wood, S. (2025). demography: Forecasting Mortality, Fertility, Migration and Population Data (Version 2.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.demography

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for demography version 2.0.1 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy