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
445
Last 30 days
8567th
1.5K
Last 90 days
7.5K
Last year
Trend: -27.3% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | ERROR |
| r-devel-linux-x86_64-debian-gcc | ERROR |
| r-devel-linux-x86_64-fedora-clang | ERROR |
| r-devel-linux-x86_64-fedora-gcc | ERROR |
| r-devel-macos-arm64 | ERROR |
| r-devel-windows-x86_64 | ERROR |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | NOTE |
| r-patched-linux-x86_64 | ERROR |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (10 non-OK)
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
> ### 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 with CPU (user + system) or elapsed time > 5s
user system elapsed
diffusionMap 6.443 0.115 8.276
degree_adoption_diagnostic 5.141 0.273 6.620
rewire_graph 5.071 0.079 7.525
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
> ### 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
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
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
> ### 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 with CPU (user + system) or elapsed time > 5s
user system elapsed
diffusionMap 6.329 0.122 7.978
degree_adoption_diagnostic 4.897 0.063 6.187
Check History
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