These examples use boids4R scenario builders and render
current boids, species-aware velocity arrows, faint recent trails, and
obstacle or predator context rings through ggWebGL.
Code examples are shown by default. Live WebGL widgets are disabled
during CRAN, package checks, and CI. Rich local or pkgdown rendering
requires GGWEBGL_EVAL_COVERAGE_VIGNETTE=true and
GGWEBGL_EVAL_LIVE_WIDGETS=true.
if (!boids4r_available) {
cat("boids4R is unavailable, so live 2D boids widgets are skipped.\n")
} else if (!ggwebgl_eval_widgets) {
cat("boids4R is available, but live 2D boids widgets are skipped because live widget evaluation is disabled.\n")
} else {
cat("boids4R is available; live 2D boids widgets will be rendered below.\n")
}