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
590
Last 30 days
6388th
590
Last 90 days
590
Last year
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 | OK |
| 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 | 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 details (14 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.509 0.017 8.930
degree_adoption_diagnostic 5.159 0.104 6.363
rewire_graph 4.913 0.141 6.859
exposure 4.043 0.031 5.288
c.diffnet 3.445 0.055 5.176
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
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
*
*
*
*
*
Check History
ERROR 6 OK · 3 NOTE · 0 WARNING · 5 ERROR · 0 FAILURE Mar 9, 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
> ### 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> -> fo
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> -> fo
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