softwareRisk: Computation of Node and Path-Level Risk Scores in Scientific Models

It leverages the network-like architecture of scientific models together with software quality metrics to identify chains of function calls that are more prone to generating and propagating errors. It operates on tbl_graph objects representing call dependencies between functions (callers and callees) and computes risk scores for individual functions and for paths (sequences of function calls) based on cyclomatic complexity, in-degree and betweenness centrality. The package supports variance-based uncertainty and sensitivity analyses after Puy et al. (2022) <doi:10.18637/jss.v102.i05> to assess how risk scores change under alternative risk definitions.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: dplyr, ggplot2, ggraph, igraph, ineq, purrr, scales, tibble, tidygraph, grid, stats, utils, rlang, data.table, sensobol
Suggests: knitr, rmarkdown, spelling
Published: 2026-01-21
DOI: 10.32614/CRAN.package.softwareRisk (may not be active yet)
Author: Arnald Puy ORCID iD [aut, cre]
Maintainer: Arnald Puy <arnald.puy at pm.me>
License: GPL-3
NeedsCompilation: no
Language: en-US
Citation: softwareRisk citation info
Materials: README, NEWS
CRAN checks: softwareRisk results

Documentation:

Reference manual: softwareRisk.html , softwareRisk.pdf
Vignettes: softwareRisk: Computation of Node and Path-Level Risk Scores in Scientific Models (source, R code)

Downloads:

Package source: softwareRisk_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): softwareRisk_0.1.0.tgz, r-oldrel (arm64): softwareRisk_0.1.0.tgz, r-release (x86_64): softwareRisk_0.1.0.tgz, r-oldrel (x86_64): softwareRisk_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=softwareRisk to link to this page.