Modular Monte Carlo Risk Analysis
Overview
Framework for building modular Monte Carlo risk analysis models. It extends the capabilities of 'mc2d' to facilitate working with multiple risk pathways, variates and scenarios. It provides tools to organize risk analysis in independent flexible modules, align multivariate mcnodes, automate the creation of mcnodes, visualise model structure, assess convergence, and perform sensitivity analysis. For more details see Ciria (2026) https://nataliaciria.com/mcmodule/.
Lifecycle
agg_totals()is now deprecated in favour ofagg_variates().agg_totals()remains available for backwards compatibility, but now issues a lifecycle warning.
Bug fixes
mc_plot()now draws boxplots above scatter points (#86).get_node_list()now usesnode_nameinstead ofparam_nameswhen filteringin_nodes(#84).optim_ndvar()no longer produces warnings related to empty mctable handling (#87).mcmodule_converg()tests are now reproducible on CRAN. Tests for non-convergence now set a random seed, because false negatives are expected when using a very limited number of simulations (#87).
Show all changes in 1.3.1Hide the rest of the changes in 1.3.1
Documentation
- Updated the sensitivity analysis vignette and added references.
- Updated README installation instructions to recommend
pak::pak()instead ofdevtools::install_github().
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-07
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-16
Show 7 earlier changesHide 7 earlier changes
- ERROR12 OK, 1 ERROR2026-07-15
- OK13 OK2026-06-21
- ERROR12 OK, 1 ERROR2026-06-20
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 57 (1 internal)
- Examples that run
- 94%32 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 87%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 0
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
8 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/nataliaciria/mcmodule on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-11-25
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-12-26Pull request: opened by its own accountCommits: 14 by its own account
Dependencies
Installing mcmodule adds 27 packages (13 with compiled code, 19 MB of source tarballs). Heaviest: ggplot2 6.0 MB, mc2d 2.1 MB, isoband 1.5 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.3.1Latest
- 1.3.02026-05-25 · diff ↗ ·
added 9 exports
matrix_to_mcnodes, mc_compare, mcmodule_tornado, mcnode_null_rm, mctable_bounds, mctable_sobol_matrices, optim_ndvar, reset_sample_design, set_sample_design - RR 4.6.0 released · 2026-04-24
- 1.2.02026-03-02 · diff ↗ ·
added 9 exports
mc_filter, mc_plot, mcmodule_converg, mcmodule_corr, mcmodule_info, tidy_mcnode, which_mcnode, which_mcnode_inf, which_mcnode_na - 1.1.12025-11-25 · diff ↗
- 1.1.02025-10-22
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-10-22
- Total releases
- 5 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5
- Bundled data
- 166 KB / 8 files
- Download size
- 3.2 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("mcmodule")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.