Skip to content

mpmsim

3.3.0Package record

Simulation of Matrix Population Models with Defined Life History Characteristics

0packages depend
3.6Kdownloads / year
96.7%test coverage
13/13flavors OK

Overview

About

Allows users to simulate matrix population models with particular characteristics based on aspects of life history such as mortality trajectories and fertility trajectories. Also allows the exploration of sampling error due to small sample size.

Changes in 3.3.0
  • Fixed typo in calculate_errors(): the mat_U_error element in the returned list was incorrectly named ,mat_U_error when type = "sem", causing NULL to be returned on access.
  • Fixed broken vectorisation in driven_vital_rate(): conditions length(slope > 1) and length(error_sd > 1) were always evaluating to TRUE regardless of input, preventing correct handling of matrix inputs.
  • Fixed wrong parameter row indices in rand_leslie_set() for the Siler mortality model (b_0 and b_1 were drawn from the same ranges as a_0 and a_1) and for multi-parameter fecundity models (logistic, vonBertalanffy, normal, hadwiger), where all parameters were incorrectly drawn from the first row of fecundity_params.
  • Removed orphaned expression in internal function add_mpm_error_indiv() that had no effect.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.0 min · r-release-macos-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-03-10
Advisories

none known

Documentation

Downloads

3.6K
CRAN downloads in the past year
Rank #10,228 · ~10/day · ~299/mo
mpmsim
Daily download trend is not available in this view yet.
40430 days
98390 days
3.6K1 year
Compare downloads with other packages →
Also on71 r2u5 autocran

Repository

5Stars
0Forks
4Open issues
0Open PRs
8Releases
437Commits
2Commit identities
demographymatrix-population-modelsrr-packagesimulation
437 commits · Last activity 2026-08-10 · Default branch at 3.3.1.9000, ahead of CRAN 3.3.0 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
86%
Median days to close, 50 most recently updated closed issues
74
Median days to close, 50 most recently updated closed PRs
0
PracticesBeta

12 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/jonesor/mpmsim on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-08-10 · The repository has a site deploy workflow

pkgdown site last built 2026-08-10

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 3 practices
Research and citation (1)
codemeta.json
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-04-21
    Named in .Rbuildignore: .claude
    Pull request it wrote: opened by a project member
    Commits: 6 by its own account · at least 6 crediting it in the message
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing mpmsim adds 79 packages (40 with compiled code, 68 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, bslib 5.6 MB.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 1.0.0 (2023)
Releases (8)
  • 3.3.0Latest
    2026-04-24 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 3.2.1
    2025-06-05 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 3.2.0
    2025-03-06 · diff ↗ ·
    removed 2 exports
    generate_mpm_set, random_mpm
  • 3.1.0
    2024-10-12 · diff ↗ ·
    added 2 exports
    model_fecundity, model_reproduction
  • 3.0.0
    2024-07-02 · diff ↗ ·
    added 6 exports
    compute_ci_U, rand_lefko_mpm, rand_lefko_set, rand_leslie_set, reorganise_matrices, summarise_mpms
  • R
    R 4.4.0 released · 2024-04-24
  • 2.0.0
    2024-01-15 · diff ↗
  • 1.1.0
    2023-09-29 · diff ↗ ·
    added 2 exports
    driven_vital_rate, model_mortality
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0
    2023-04-18
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2023-04-18
Total releases
8 / 3 yrs
License
CC BY-SA 4.0
Download size
368 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("mpmsim")
Jones, O. (2026). mpmsim: Simulation of Matrix Population Models with Defined Life History Characteristics (Version 3.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.mpmsim

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 mpmsim version 3.3.0 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, 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