From ca275fcf8b4a4538724f17f50b2bb0276ca32d7e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Mar 2026 14:32:57 +0000 Subject: [PATCH 1/3] Initial plan From f00fa12f5fb527eb77521ea3069be1a417c9a491 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Mar 2026 14:34:25 +0000 Subject: [PATCH 2/3] Fix round_to_seq example: change plot(w,x) to plot(w) Co-authored-by: gvegayon <893619+gvegayon@users.noreply.github.com> --- R/plot_diffnet2.r | 2 +- man/round_to_seq.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/plot_diffnet2.r b/R/plot_diffnet2.r index f5cf8b6a..609afb0c 100644 --- a/R/plot_diffnet2.r +++ b/R/plot_diffnet2.r @@ -9,7 +9,7 @@ #' #' x <- rnorm(100) #' w <- data.frame(as.integer(round_to_seq(x, as_factor = TRUE)),x) -#' plot(w,x) +#' plot(w) #' #' @seealso Used in \code{\link{diffmap}} and \code{\link{plot_diffnet2}} round_to_seq <- function(x, nlevels=20, as_factor=FALSE) { diff --git a/man/round_to_seq.Rd b/man/round_to_seq.Rd index 834e7c97..450367a2 100644 --- a/man/round_to_seq.Rd +++ b/man/round_to_seq.Rd @@ -24,7 +24,7 @@ Takes a numeric vector and maps it into a finite length sequence x <- rnorm(100) w <- data.frame(as.integer(round_to_seq(x, as_factor = TRUE)),x) -plot(w,x) +plot(w) } \seealso{ From 8b115f456a8466ed8f0adb4455654692025fb1ee Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Mar 2026 21:12:55 +0000 Subject: [PATCH 3/3] Bump version to 1.24.1, update NEWS.md and README.md Co-authored-by: gvegayon <893619+gvegayon@users.noreply.github.com> --- DESCRIPTION | 2 +- NEWS.md | 6 ++++++ README.md | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 2c7e9575..f43f92e0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: netdiffuseR Title: Analysis of Diffusion and Contagion Processes on Networks -Version: 1.24.0 +Version: 1.24.1 Authors@R: c( person("George", "Vega Yon", email="g.vegayon@gmail.com", role=c("aut", "cre"), comment=c(ORCID = "0000-0002-3171-0844", what="Rewrite functions with Rcpp, plus new features") diff --git a/NEWS.md b/NEWS.md index c3f66257..b0dbbbd7 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,9 @@ +# Changes in netdiffuseR version 1.24.1 (2026-03-03) + +* Fixed CRAN example error in `round_to_seq()`: `plot(w, x)` replaced with + `plot(w)` to avoid `%||%` operator issue in R 4.4.0+'s `formula.default` + when called via `plot.data.frame()`. + # Changes in netdiffuseR version 1.24.0 (2025-12-09) * New function `degree_adoption_diagnostic()` analyzes the correlation between network diff --git a/README.md b/README.md index 6db64b07..bde38474 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ And the actual R package: Vega Yon G, Olivera Morales A, Valente T (2025). _netdiffuseR: Analysis of Diffusion and Contagion Processes on Networks_. doi:10.5281/zenodo.1039317 , - R package version 1.24.0, . + R package version 1.24.1, . To see these entries in BibTeX format, use 'print(, bibtex=TRUE)', 'toBibtex(.)', or set @@ -374,7 +374,7 @@ sessionInfo() #> [1] stats graphics grDevices utils datasets methods base #> #> other attached packages: -#> [1] netdiffuseR_1.24.0 +#> [1] netdiffuseR_1.24.1 #> #> loaded via a namespace (and not attached): #> [1] Matrix_1.7-4 jsonlite_2.0.0 dplyr_1.1.4