- Next #rstats 📦 up on #CRAN is {statnet.common} 4.12.0. It is, as always, a hodgepodge of functions and methods used throughout the #statnet project packages. @mbojan.sciences.social.ap.brid.gy contributed to this release. Release notes are, as always, at cran.r-project.org/web/packages... .May 30, 2025 11:13
- A helper function modify_in_place() for easily implementing functions that robustly modify their arguments in place (without resorting to environments a la #R6). E.g., > inc <- function(x){ modify_in_place(x, x+1) } > x <- 1:3 inc(x[1]) > x [1] 2 2 3
- There are also more utilities for PSD matrix calculations, particularly for computing xᵀV⁻¹x, taking into account that: * base::solve() treats diag(c(1e10, 1e-10)) as computationally singular. * Even when V is, in fact, singular, a unique and sensible answer still exists if x is in the span of V.