Skip to content

netdiffuseR

1.25.0Package record

Analysis of Diffusion and Contagion Processes on Networks

0packages depend
6.9Kdownloads / year
84.2%test coverage
13/13flavors OK

Overview

About

Empirical statistical analysis, visualization and simulation of diffusion and contagion processes on networks. The package implements algorithms for calculating network diffusion statistics such as transmission rate, hazard rates, exposure models, network threshold levels, infectiousness (contagion), and susceptibility. The package is inspired by work published in Valente, et al., (2015) DOI:10.1016/j.socscimed.2015.10.001; Valente (1995) <ISBN: 9781881303213>, Myers (2000) DOI:10.1086/303110, Iyengar and others (2011) DOI:10.1287/mksc.1100.0566, Burt (1987) DOI:10.1086/228667; among others.

Changes in 1.25.0

User-visible changes

  • New function collapse_timeframes(): aggregates high-resolution or continuous-time longitudinal edgelists into discrete time windows, ready for use with edgelist_to_adjmat() or as_diffnet(). The function contains parameters such as binarize, cumulative, and symmetric for better control over the aggregation process.
  • New dataset epigames and epigamesDiffNet: a simulated epidemic game network with 594 nodes and 15 time periods from the WKU Epi Games study.

Internal changes

  • Fixed CRAN example error in round_to_seq(): plot(w, x) replaced with plot(w) to avoid %||% operator issue in R 4.4.0+'s formula.default when called via plot.data.frame().
Show all changes in 1.25.0Hide the rest of the changes in 1.25.0
  • Removed configure framework. R already provides paths and configuration for OpenMP.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 8.0 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
  • OK13 OK2026-04-28
Show 4 earlier changesHide 4 earlier changes
  • ERROR11 OK, 1 ERROR2026-04-27
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-04-22
  • ERROR6 OK, 3 NOTE, 5 ERROR2026-03-10
Advisories

none known

Documentation

In release 1.25.0
READMEYes · 515 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 1.25.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
Help pages
85includes a package overview page
Examples that run
98%59 run in a plain check · 1 never run
Exported functions with examples
84%
Documented parameters
90%
Return-value docs
100%
Help pages citing references
29%

Downloads

6.9K
CRAN downloads in the past year
Rank #5,126 · ~19/day · ~577/mo
Daily download trend is not available in this view yet.
54030 days
1.6K90 days
6.9K1 year
Compare downloads with other packages →
Also on479 r2u8 autocran

Repository

93Stars
22Forks
37Open issues
5Open PRs
11Releases
414Commits
8Commit identities
network-analysisnetwork-visualizationdiffusion-networkcontagionr
414 commits · Last activity 2026-10-12 · +1.1% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
81%
Median days to close, 50 most recently updated closed issues
12
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-09-25 · 892026-10-17 · 93
PracticesBeta

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

Checks run against github.com/usccana/netdiffuser on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Docs source (4)
README.qmdpkgdown

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

Reproducibility and dev environment (3)
data-raw/MakefileDev Container
CRAN release process (1)
cran-comments.md
Show all practicesHide 3 practices
Research and citation (1)
CITATION.cff
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.

  • GitHub Copilotfirst seen 2025-09-08
    Seen in the repository: .github/copilot-instructions.md
    Pull request: opened by its own account
    Commits: 3 by its own account · at least 6 crediting it in the message
  • Claude Codefirst seen 2026-08-06
    Pull request it wrote: opened by a project member
    Commits: at least 2 crediting it in the message
  • Codexfirst seen 2026-08-15
    Commits: at least 2 crediting it in the message
Models named in its commits
  • Claude Opus 51 commit · Aug 2026
  • Claude Sonnet 51 commit · Sep 2026
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
16 external dependencies (excludes base and recommended)

Installing netdiffuseR adds 30 packages (18 with compiled code, 18 MB of source tarballs). Heaviest: igraph 4.8 MB, Rcpp 1.8 MB, MatchIt 1.7 MB.

Depends (1)
R >= 3.5
Imports (16)
RcppsnanetworknetworkDynamicMatrixMASSMatchItSparseMmethodsgrDevicesgraphicsstatsutilsbootigraphviridisLite
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (5)
Author, Maintainer since 1.16.2 (2016)
Rewrite functions with Rcpp, plus new features
Author, Contributor · added in 1.23.0
Developer from V1.23.0
Author, Copyright holder
R original code
Contributor
Package's first version
Contributor · added in 1.16.5
Package's first version
Listed in earlier versions (1)
Tim Hayes
no longer listed · 1.16.2
Releases (18)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • unarchivedReturned to CRAN
    2026-04-10
  • 1.25.0Latest
    record
    2026-04-10 · current release · diff ↗ ·
    added 1 export
    collapse_timeframes
  • archivedRemoved from CRAN
    2026-04-06
    issues were not corrected despite reminders
  • unarchivedReturned to CRAN
    2025-12-09
  • 1.24.0
    record
    2025-12-09 · diff ↗ ·
    added 1 export
    degree_adoption_diagnostic
  • archivedRemoved from CRAN
    2025-11-28
    issues were not corrected despite reminders
  • 1.23.0
    record
    2025-06-12 · diff ↗ ·
    added 1 export
    split_behaviors
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.22.6
    record
    2023-08-30 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • unarchivedReturned to CRAN
    2022-12-02
  • 1.22.5
    record
    2022-12-02 · diff ↗ ·
    added 4 exports
    is_multiple, is_self, is_undirected, is_valued
  • archivedRemoved from CRAN
    2022-10-05
    repeated check issues were not corrected in time
  • 1.22.4
    record
    2022-09-20 · diff ↗
Show 27 earlier eventsHide 27 earlier events
  • R
    R 4.2.0 released · 2022-04-22
  • unarchivedReturned to CRAN
    2021-05-28
  • 1.22.3
    record
    2021-05-28 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • archivedRemoved from CRAN
    2021-05-11
    check problems were not corrected in time
  • unarchivedReturned to CRAN
    2020-05-07
  • 1.22.0
    record
    2020-05-07 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • archivedRemoved from CRAN
    2020-03-07
    check problems were not corrected in time
  • unarchivedReturned to CRAN
    2020-02-12
  • 1.21.0
    record
    2020-02-12 · diff ↗
  • archivedRemoved from CRAN
    2019-12-21
    check problems were not corrected in time
  • R
    R 3.6.0 released · 2019-04-26
  • 1.20.2
    record
    2019-03-26 · diff ↗
  • 1.20.0
    record
    2018-06-07 · diff ↗ ·
    added 1 export
    diffreg
  • R
    R 3.5.0 released · 2018-04-23
  • 1.19.0
    record
    2017-10-26 · diff ↗ ·
    added 3 exports
    igraph_vertex_rescale, rdiffnet_multiple, vertex_rescale_igraph
  • 1.18.1
    record
    2017-07-24 · diff ↗ ·
    added 5 exports
    diffnet_to_network, diffnet_to_networkDynamic, networkDynamic_to_diffnet, network_to_diffnet, new_diffnet
  • 1.18.0
    record
    2017-07-18 · diff ↗ ·
    added 17 exports
    approx_geodesic, approx_geodist, as.dgCMatrix, as_dgCMatrix, as_spmat, bass_F, bass_dF, bass_f, bootnet, compare_matrix, fitbass, leader_matching, matrix_compare, mentor_matching, netmatch, netmatch_prepare, resample_graph
  • R
    R 3.4.0 released · 2017-04-21
  • 1.17.0
    record
    2016-11-11 · diff ↗ ·
    added 14 exports
    diag_expand, ego_variance, permute_graph, read_ml, read_ucinet_head, rewire_permute, rewire_qap, struct_test_asymp, transformGraphBy, vertex_covariate_compare, vertex_covariate_dist, vertex_mahalanobis_dist, weighted_var, wvar
  • 1.16.7
    record
    2016-07-07 · diff ↗ ·
    added 12 exports
    %*%, classify, classify_adopters, diffmap, diffnetLapply, diffusionMap, drawColorKey, n_rewires, plot_diffnet2, pretty_within, rescale_vertex_igraph, round_to_seq
  • 1.16.5
    record
    2016-05-07 · diff ↗ ·
    removed 1 export
    diffnet.subset.slices
    added 14 exports
    adopt_changes, diffnet_check_attr_class, diffnet_to_igraph, edgelist_to_diffnet, igraph_to_diffnet, nedges, nlinks, nnodes, nodes, nslices, nvertices, read_pajek, read_ucinet, survey_to_diffnet
  • R
    R 3.3.0 released · 2016-05-03
  • archivedRemoved from CRAN
    2016-05-02
    check problems were not corrected despite reminders
  • 1.16.2
    record
    2016-02-18
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2016-02-18
Total releases
18 / 10 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5
Bundled data
514 KB / 12 files
Download size
3.4 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("netdiffuseR")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

The repository also keeps a CITATION.cff.

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

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