Skip to content

netdiffuseR

Analysis of Diffusion and Contagion Processes on Networks

v1.25.0 · Apr 10, 2026 · MIT + file LICENSE

Description

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.

Downloads

800

Last 30 days

4160th

2.3K

Last 90 days

8.2K

Last year

Trend: +4.4% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘sna’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 28, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 27, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘netdiffuseR-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: edges_coords
> ### Title: Compute ego/alter edge coordinates considering alter's size and
> ###   
...[truncated]...
ffNet),  :
  subscript out of bounds (index 1 >= vector size 1)
Warning in edges_coords(medInnovationsDiffNet$graph[[1]], diffnet.toa(medInnovationsDiffNet),  :
  subscript out of bounds (index 1 >= vector size 1)
malloc(): corrupted top size
Aborted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 10.8Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.3Mb
    libs   5.8Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 11.3Mb
  sub-directories of 1Mb or more:
    data   1.2Mb
    doc    2.4Mb
    help   1.3Mb
    libs   5.8Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  7.0Mb
  sub-directories of 1Mb or more:
    data   1.2Mb
    doc    2.4Mb
    help   1.3Mb
    libs   1.5Mb
Archived
Apr 6, 2026
ERROR 6 OK · 3 NOTE · 0 WARNING · 5 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-linux-x86_64-debian-clang

examples

Running examples in ‘netdiffuseR-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: round_to_seq
> ### Title: Takes a numeric vector and maps it into a finite length sequence
> ### A
...[truncated]...
ted
Examples with CPU (user + system) or elapsed time > 5s
                            user system elapsed
diffusionMap               6.464  0.042   7.698
degree_adoption_diagnostic 5.068  0.054   5.967
rewire_graph               4.859  0.074   7.494
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘netdiffuseR-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: round_to_seq
> ### Title: Takes a numeric vector and maps it into a finite length sequence
> ### A
...[truncated]...
 x <- rnorm(100)
> w <- data.frame(as.integer(round_to_seq(x, as_factor = TRUE)),x)
> plot(w,x)
Error in attr(x, "formula") %||% { : invalid formula
Calls: plot ... plot.data.frame -> <Anonymous> -> formula -> formula.default -> %||%
Execution halted
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘netdiffuseR-Ex.R’ failed
The error most likely occurred in:

> ### Name: round_to_seq
> ### Title: Takes a numeric vector and maps it into a finite length sequence
> ### Aliases: round_to_seq
> 
> ### ** Examples
> 
> 
> x <- rnorm(100)
> w <- data.frame(as.integer(round_to_seq(x, as_factor = TRUE)),x)
> plot(w,x)
Error in attr(x, "formula") %||% { : invalid formula
Calls: plot ... plot.data.frame -> <Anonymous> -> formula -> formula.default -> %||%
Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

examples

Running examples in ‘netdiffuseR-Ex.R’ failed
The error most likely occurred in:

> ### Name: round_to_seq
> ### Title: Takes a numeric vector and maps it into a finite length sequence
> ### Aliases: round_to_seq
> 
> ### ** Examples
> 
> 
> x <- rnorm(100)
> w <- data.frame(as.integer(round_to_seq(x, as_factor = TRUE)),x)
> plot(w,x)
Error in attr(x, "formula") %||% { : invalid formula
Calls: plot ... plot.data.frame -> <Anonymous> -> formula -> formula.default -> %||%
Execution halted
ERROR r-devel-windows-x86_64

examples

Running examples in 'netdiffuseR-Ex.R' failed
The error most likely occurred in:

> ### Name: round_to_seq
> ### Title: Takes a numeric vector and maps it into a finite length sequence
> ### Aliases: round_to_seq
> 
> ### ** Examples
> 
> 
> x <- rnorm(100)
> w <- data.frame(as.integer(round_to_seq(x, as_factor = TRUE)),x)
> plot(w,x)
Error in attr(x, "formula") %||% { : invalid formula
Calls: plot ... plot.data.frame -> <Anonymous> -> formula -> formula.default -> %||%
Execution halted
NOTE r-oldrel-macos-arm64

installed package size

installed size is 10.8Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.3Mb
    libs   5.8Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 10.8Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.3Mb
    libs   5.8Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.5Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.3Mb
    libs   1.5Mb

Dependency Network

Dependencies Reverse dependencies Rcpp sna network networkDynamic Matrix MASS MatchIt SparseM boot igraph viridisLite netdiffuseR

Version History

20 tracked
new 1.25.0 Apr 10, 2026
removed 1.24.0 Apr 6, 2026
new 1.24.0 Mar 10, 2026
updated 1.24.0 ← 1.23.0 diff Dec 8, 2025
updated 1.23.0 ← 1.22.6 diff Jun 11, 2025
updated 1.22.6 ← 1.22.5 diff Aug 29, 2023
updated 1.22.5 ← 1.22.4 diff Dec 1, 2022
updated 1.22.4 ← 1.22.3 diff Sep 19, 2022
updated 1.22.3 ← 1.22.0 diff May 27, 2021
updated 1.22.0 ← 1.21.0 diff May 6, 2020
updated 1.21.0 ← 1.20.2 diff Feb 11, 2020
updated 1.20.2 ← 1.20.0 diff Mar 25, 2019
updated 1.20.0 ← 1.19.0 diff Jun 6, 2018
updated 1.19.0 ← 1.18.1 diff Oct 25, 2017
updated 1.18.1 ← 1.18.0 diff Jul 23, 2017