fillpattern
Pattern fills for ggplot2, hardened against the ways users write sizes
A side-by-side editorial comparison of sd2r and tglkmeans — release velocity, themes, recent moves, and the top alternatives to consider.
Local Stable Diffusion inference lands in R, shipped as Rcpp bindings over stable-diffusion.cpp
sd2r is a young project wrapping stable-diffusion.cpp for R via Rcpp. The 0.1.0 release established the package structure and the core call surface — sd_ctx(), sd_txt2img(), sd_save_image() — with Vulkan GPU support behind a configure flag and a worked SD 1.5 example at 512x512. The two releases since are not code but asset bundles: precompiled tokenizer vocabularies and BPE merge tables shipped as header files, growing from four tokenizers to twelve.
A k-means implementation that just told users their Spearman clustering on missing data was wrong
tglkmeans is a multi-core k-means implementation with seeding, aimed at single-cell and other large matrix workloads. Version 0.4.0 flipped the id_column default and moved to R's random number generator, 0.5.x added count-matrix downsampling and fixed id handling, and 0.6.3 in May 2026 is a correctness release: Spearman distance was ranking missing values as the largest value instead of dropping them, and predict_tgl_kmeans() with Euclidean distance did not reproduce the training metric when a cluster center had a missing dimension.
sd2r is a young project wrapping stable-diffusion.cpp for R via Rcpp. The 0.1.0 release established the package structure and the core call surface — sd_ctx(), sd_txt2img(), sd_save_image() — with Vulkan GPU support behind a configure flag and a worked SD 1.5 example at 512x512. The two releases since are not code but asset bundles: precompiled tokenizer vocabularies and BPE merge tables shipped as header files, growing from four tokenizers to twelve.
The asset releases are the more revealing half of this history. The first bundle covered CLIP, Mistral, Qwen and UMT5 — enough for SD 1.x through Flux. The second adds T5, Gemma, Gemma2 and GPT-OSS merges and splits UMT5 out as the Wan video encoder, so the tokenizer surface now reaches well beyond the image models the package currently exposes. Vocabulary support is being staged ahead of the inference paths that would use it.
Given that tokenizers for Flux, SD3 and the Wan video encoder are already bundled while the documented API stops at txt2img, the next step is most likely exposing those model families through the R interface.
tglkmeans is a multi-core k-means implementation with seeding, aimed at single-cell and other large matrix workloads. Version 0.4.0 flipped the id_column default and moved to R's random number generator, 0.5.x added count-matrix downsampling and fixed id handling, and 0.6.3 in May 2026 is a correctness release: Spearman distance was ranking missing values as the largest value instead of dropping them, and predict_tgl_kmeans() with Euclidean distance did not reproduce the training metric when a cluster center had a missing dimension.
The package handles missing data across three distance metrics, and 0.6.3 shows those paths had drifted apart — Spearman behaved unlike Euclidean and Pearson, and prediction behaved unlike training. Both fixes change results on affected data, and the release notes are careful to bound exactly where: Spearman on data with NAs changes, complete data does not. Performance work runs alongside, with the dense per-thread vote matrix removed from the reassignment step.
With the metric paths now aligned on missing-value handling, further work is more likely to target the parallel reassignment internals than the distance semantics.
Other Analytics products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either sd2r or tglkmeans.
Pattern fills for ggplot2, hardened against the ways users write sizes
gcube's recent releases are all packaging metadata, not simulation code
The R port of Quinlan's Cubist gets reproducibility fixes, not new modelling
ggstats keeps widening what a coefficient or Likert plot can be
ecodive rebuilt itself into a broad diversity-metric library, breaking as it went
State-space data simulation for R, filled in one function at a time
See all sd2r alternatives → · See all tglkmeans alternatives →
Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.
Both compete on the same themes — r-package — within Analytics. sd2r and tglkmeans are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.
Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. sd2r and tglkmeans are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.
Top sd2r alternatives in Analytics are ranked by recent ship velocity. Browse the "sd2r alternatives" section above for the current picks, or visit /alternatives/sd2r for the full list with editorial commentary on each.
Top tglkmeans alternatives in Analytics are ranked by recent ship velocity. Browse the "tglkmeans alternatives" section above for the current picks, or visit /alternatives/tglkmeans for the full list with editorial commentary on each.