netdiffuseR
Analysis of Diffusion and Contagion Processes on Networks
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
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
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
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
installed package size
installed size is 10.8Mb
sub-directories of 1Mb or more:
doc 2.4Mb
help 1.3Mb
libs 5.8Mb
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
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
ERROR 6 OK · 3 NOTE · 0 WARNING · 5 ERROR · 0 FAILURE Mar 10, 2026
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
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
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
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
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
installed package size
installed size is 10.8Mb
sub-directories of 1Mb or more:
doc 2.4Mb
help 1.3Mb
libs 5.8Mb
installed package size
installed size is 10.8Mb
sub-directories of 1Mb or more:
doc 2.4Mb
help 1.3Mb
libs 5.8Mb
installed package size
installed size is 6.5Mb
sub-directories of 1Mb or more:
doc 2.4Mb
help 1.3Mb
libs 1.5Mb