Package: boids4R 0.3.2

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>.

Authors:Frederic Bertrand [cre, aut]

boids4R_0.3.2.tar.gz
boids4R_0.3.2.zip(r-4.7)boids4R_0.3.2.zip(r-4.6)boids4R_0.3.2.zip(r-4.5)
boids4R_0.3.2.tgz(r-4.6-x86_64)boids4R_0.3.2.tgz(r-4.6-arm64)boids4R_0.3.2.tgz(r-4.5-x86_64)boids4R_0.3.2.tgz(r-4.5-arm64)
boids4R_0.3.2.tar.gz(r-4.7-arm64)boids4R_0.3.2.tar.gz(r-4.7-x86_64)boids4R_0.3.2.tar.gz(r-4.6-arm64)boids4R_0.3.2.tar.gz(r-4.6-x86_64)
boids4R_0.3.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
boids4R/json (API)

# Install 'boids4R' in R:
install.packages('boids4R', repos = c('https://fbertran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/fbertran/boids4r/issues

Pkgdown/docs site:https://fbertran.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

5.18 score 1 stars 20 scripts 507 downloads 6 exports 1 dependencies

Last updated from:584f699c06. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK138
linux-devel-x86_64OK145
source / vignettesOK209
linux-release-arm64OK141
linux-release-x86_64OK135
macos-release-arm64OK95
macos-release-x86_64OK287
macos-oldrel-arm64OK107
macos-oldrel-x86_64OK173
windows-develOK87
windows-releaseOK112
windows-oldrelOK102
wasm-releaseOK155

Exports:as_ggwebgl_specboids_paramsboids_scenarioboids_stateboids_worldsimulate_boids

Dependencies:Rcpp

Custom Simulation Workflows
Build a corridor experiment | Measure progress and clearance | Plot the world and final state | Sweep steering weights | Add a 3D mixed-species run

Last update: 2026-06-01
Started: 2026-04-29

Flocks, Herds, Swarms, and Schools
Helpers | Build example simulations | Compare the 3D examples | 2D variants | Animate with ggWebGL

Last update: 2026-06-01
Started: 2026-04-29

Getting Started with boids4R

Last update: 2026-06-01
Started: 2026-04-29

Scenario Gallery
Compare recorded swarms | Snapshot plots | Hand off to ggWebGL

Last update: 2026-06-01
Started: 2026-04-29

Swarm Art Creation
Shared helpers | Foundational swarm-art recipes | Trail drawing | Time-layered particles | Negative-space obstacles | Depth as colour | Spectacular swarm-art examples | Nebula vortex | Predator comet | Obstacle bloom | Double helix ribbon | Exporting art | Design notes

Last update: 2026-06-01
Started: 2026-04-29