diff --git a/DESCRIPTION b/DESCRIPTION index 2c7e957..f43f92e 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 c3f6625..b0dbbbd 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/R/plot_diffnet2.r b/R/plot_diffnet2.r index f5cf8b6..609afb0 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/README.md b/README.md index 6db64b0..bde3847 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 diff --git a/man/round_to_seq.Rd b/man/round_to_seq.Rd index 834e7c9..450367a 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{