R Under development (unstable) (2025-06-10 r88298 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(netdiffuseR) Attaching package: 'netdiffuseR' The following object is masked from 'package:base': %*% > > Sys.setenv("R_TESTS" = "") > > test_check("netdiffuseR", reporter = "summary") adjmat: Read/Write graphs edgelist to adjmat and vice-versa: .............. Time of Adoption (toa_mat, toa_diff): ........... Time of Adoption -multiple- (toa_mat, toa_dif): ..........W...... Isolated vertices (isolated, drop_isolated): ............. bass: Bass Diffusion model: ... bootnet: Network bootstrap: ........ cumulative_adopt_count: Cumulative adopt count, and hazard rate: .... dgr: Degree function: ................. diffnet-class: Diffnet class and methods: .......................... diffnet-indexing: Checking diffnet-indexing: ................ diffnet-methods: plot_diffnet, threshold, and exposure: ........ Threshold functions: ............. Infectiousness and susceptibility (plot methods): ........W.. Other methods: .................................. egonets: Egonets: ....... examples: foreign: Foreign function: WWW........ formula: Diffusion Regression: .... graph_data: Graph objects: ............... imports: Silly tests for imports.R: . infect_suscept: Infection and susceptibility: ................ mentor: Mentor matching: .. misc: Misc functions: ....... moran: Morans I: . netdiffuser_extra: C++ extra functions: ... options: Testing package .onLoad and options: .... plot_diffnet2: Set of functions used in: plot_diffnet2: ........ random_graph: Random graphs: .....WW......WW..... rdiffnet-parameters: ............................................ rdiffnet: Random diffusion graphs: ..W...........Diffusion network summary statistics Name : A diffusion network Behavior : Random contagion ----------------------------------------------------------------------------- Period Adopters Cum Adopt. (%) Hazard Rate Density Moran's I (sd) -------- ---------- ---------------- ------------- --------- ---------------- 1 3 3 (0.03) - 0.01 0.04 (0.06) 2 18 21 (0.21) 0.19 0.01 0.59 (0.07) *** 3 18 39 (0.39) 0.23 0.01 0.45 (0.06) *** 4 16 55 (0.55) 0.26 0.01 0.29 (0.07) *** 5 20 75 (0.75) 0.44 0.01 0.20 (0.06) *** ----------------------------------------------------------------------------- Left censoring : 0.03 (3) Right centoring : 0.25 (25) # of nodes : 100 Moran's I was computed on contemporaneous autocorrelation using 1/geodesic values. Significane levels *** <= .01, ** <= .05, * <= .1. .W.W.W.W.W.W.W.W.W.W.WDiffusion network summary statistics Name : A diffusion network Behavior : Random contagion_1 ----------------------------------------------------------------------------- Period Adopters Cum Adopt. (%) Hazard Rate Density Moran's I (sd) -------- ---------- ---------------- ------------- --------- ---------------- 1 3 3 (0.03) - 0.01 -0.05 (0.06) 2 17 20 (0.20) 0.18 0.01 0.56 (0.07) *** 3 23 43 (0.43) 0.29 0.01 0.46 (0.07) *** 4 21 64 (0.64) 0.37 0.01 0.87 (0.07) *** 5 7 71 (0.71) 0.19 0.01 0.77 (0.07) *** ----------------------------------------------------------------------------- Left censoring : 0.03 (3) Right centoring : 0.29 (29) Behavior : Random contagion_2 ----------------------------------------------------------------------------- Period Adopters Cum Adopt. (%) Hazard Rate Density Moran's I (sd) -------- ---------- ---------------- ------------- --------- ---------------- 1 3 3 (0.03) - 0.01 -0.05 (0.06) 2 17 20 (0.20) 0.18 0.01 0.56 (0.07) *** 3 23 43 (0.43) 0.29 0.01 0.46 (0.07) *** 4 21 64 (0.64) 0.37 0.01 0.87 (0.07) *** 5 7 71 (0.71) 0.19 0.01 0.77 (0.07) *** ----------------------------------------------------------------------------- Left censoring : 0.03 (3) Right centoring : 0.29 (29) # of nodes : 100 Moran's I was computed on contemporaneous autocorrelation using 1/geodesic values. Significane levels *** <= .01, ** <= .05, * <= .1. .WW.W...W. read_write_foreign: Read/write foreign formats: .. rewire: Rewiring algorithms: WW.WWW..WWWWWWWWWWWWWWWWWWWWWWWWW................... select_egoalter: Select ego/alter: .... spatial: Spatial functions (beta): ... stats: Stats functions (including exposure): .............................................. struct_equiv: Structural equivalence: .................. struct_test: Structural test: .S...... survey_to_diffnet: Survey to diffnet: ................... ══ Skipped ═════════════════════════════════════════════════════════════════════ 1. struct_test should be reproducible (parallel version) ('test-struct_test.R:23:3') - Reason: On CRAN ══ Warnings ════════════════════════════════════════════════════════════════════ 1. (code run outside of `test_that()`) ('test-adjmat.R:178:1') - Coercing -toa- into integer. 2. Returning threshold equal to the infect/suscept funs ('test-diffnet-methods.R:133:3') - When applying logscale some observations are missing. 3. igraph back and forth ('test-foreign.R:9:3') - `list.vertex.attributes()` was deprecated in igraph 2.0.0. ℹ Please use `vertex_attr_names()` instead. 4. igraph back and forth ('test-foreign.R:9:3') - `list.edge.attributes()` was deprecated in igraph 2.0.0. ℹ Please use `edge_attr_names()` instead. 5. igraph back and forth ('test-foreign.R:9:3') - `is.directed()` was deprecated in igraph 2.0.0. ℹ Please use `is_directed()` instead. 6. Barabasi-Albert model: methods ('test-random_graph.R:45:3') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 7. Barabasi-Albert model: methods ('test-random_graph.R:46:3') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 8. De Almeida model: methods ('test-random_graph.R:89:3') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 9. De Almeida model: methods ('test-random_graph.R:90:3') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 10. Input ('test-rdiffnet.R:45:3') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 11. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:124:3') - Coercing -toa- into integer. 12. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:125:3') - Coercing -toa- into integer. 13. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:126:3') - Coercing -toa- into integer. 14. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:127:3') - Coercing -toa- into integer. 15. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:128:3') - Coercing -toa- into integer. 16. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:129:3') - Coercing -toa- into integer. 17. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:130:3') - Coercing -toa- into integer. 18. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:131:3') - Coercing -toa- into integer. 19. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:132:3') - Coercing -toa- into integer. 20. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:133:3') - Coercing -toa- into integer. 21. rdiffnet must run across several inputs (multiple) ('test-rdiffnet.R:135:3') - Coercing -toa- into integer. 22. All should be equal! (multiple) ('test-rdiffnet.R:150:3') - Coercing -toa- into integer. 23. All should be equal! (multiple) ('test-rdiffnet.R:153:3') - Coercing -toa- into integer. 24. toa, adopt, and cumadopt should be equal! (split_behaviors tests) ('test-rdiffnet.R:172:3') - Coercing -toa- into integer. 25. Disadoption works ('test-rdiffnet.R:203:3') - Coercing -toa- into integer. 26. Rewiring methods ('test-rewire.R:12:18') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 27. Rewiring methods ('test-rewire.R:13:18') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 28. Rewiring methods ('test-rewire.R:27:18') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 29. Rewiring methods ('test-rewire.R:28:18') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 30. Rewiring methods ('test-rewire.R:29:18') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 31. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 32. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 33. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 34. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 35. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 36. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 37. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 38. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 39. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 40. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 41. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 42. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 43. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 44. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 45. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 46. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 47. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 48. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 49. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 50. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 51. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 52. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 53. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 54. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. 55. Rewiring must hold graph's density ('test-rewire.R:46:7') - The option -copy.first- is set to TRUE. In this case, the first graph will be treated as a baseline, and thus, networks after T=1 will be replaced with T-1. ══ DONE ════════════════════════════════════════════════════════════════════════ > > proc.time() user system elapsed 18.62 1.32 19.95