boids4R: Reynolds-Style Boids and Swarm Simulation

Provides deterministic two- and three-dimensional boids and swarm simulations for R. The package implements Reynolds-style separation, alignment, and cohesion rules with optional obstacles, attractors, predators, species parameters, and reproducible frame export. Simulation state is renderer-neutral; optional adapters can hand frame data to visualization packages such as 'ggWebGL'. The model follows Reynolds (1987) <doi:10.1145/37402.37406>.

Version: 0.3.1
Depends: R (≥ 4.1)
Imports: Rcpp
LinkingTo: Rcpp
Suggests: ggWebGL (≥ 0.4.0), htmlwidgets, knitr, pkgdown, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-05-13
DOI: 10.32614/CRAN.package.boids4R (may not be active yet)
Author: Frederic Bertrand ORCID iD [cre, aut]
Maintainer: Frederic Bertrand <frederic.bertrand at lecnam.net>
BugReports: https://github.com/fbertran/boids4R/issues
License: GPL-3
URL: https://fbertran.github.io/boids4R/, https://github.com/fbertran/boids4R
NeedsCompilation: yes
Citation: boids4R citation info
Materials: NEWS
CRAN checks: boids4R results

Documentation:

Reference manual: boids4R.html , boids4R.pdf
Vignettes: Custom Simulation Workflows (source, R code)
Flocks, Herds, Swarms, and Schools (source, R code)
Getting Started with boids4R (source, R code)
Scenario Gallery (source, R code)
Swarm Art Creation (source, R code)

Downloads:

Package source: boids4R_0.3.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): boids4R_0.3.1.tgz, r-oldrel (arm64): boids4R_0.3.1.tgz, r-release (x86_64): boids4R_0.3.1.tgz, r-oldrel (x86_64): boids4R_0.3.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=boids4R to link to this page.