Skip to content

slendr

A Simulation Framework for Spatiotemporal Population Genetics

v1.5.0 · Jun 26, 2026 · MIT + file LICENSE

Description

A framework for simulating spatially explicit genomic data which leverages real cartographic information for programmatic and visual encoding of spatiotemporal population dynamics on real geographic landscapes. Population genetic models are then automatically executed by the 'SLiM' software by Haller et al. (2019) <doi:10.1093/molbev/msy228> behind the scenes, using a custom built-in simulation 'SLiM' script. Additionally, fully abstract spatial models not tied to a specific geographic location are supported, and users can also simulate data from standard, non-spatial, random-mating models. These can be simulated either with the 'SLiM' built-in back-end script, or using an efficient coalescent population genetics simulator 'msprime' by Baumdicker et al. (2022) <doi:10.1093/genetics/iyab229> with a custom-built 'Python' script bundled with the R package. Simulated genomic data is saved in a tree-sequence format and can be loaded, manipulated, and summarised using tree-sequence functionality via an R interface to the 'Python' module 'tskit' by Kelleher et al. (2019) <doi:10.1038/s41588-019-0483-y>. Complete model configuration, simulation and analysis pipelines can be therefore constructed without a need to leave the R environment, eliminating friction between disparate tools for population genetic simulations and data analysis.

Downloads

432

Last 30 days

9550th

967

Last 90 days

6.1K

Last year

Trend: +97.3% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

install log ‘’ does not exist
NOTE 12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Martin Petr <contact@bodkan.net>’

Reading Rd files failed with message:
  cannot open the connection
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies ggplot2 dplyr purrr readr magrittr reticulate tidyr png ijtiff ape scales digest ggrepel slendr

Version History

20 tracked
updated 1.5.0 ← 1.4.0 diff Jun 26, 2026
new 1.4.0 Mar 10, 2026
updated 1.4.0 ← 1.3.0 diff Jan 15, 2026
updated 1.3.0 ← 1.2.0 diff Nov 10, 2025
updated 1.2.0 ← 1.1.0 diff Jul 30, 2025
updated 1.1.0 ← 1.0.0 diff Jun 2, 2025
updated 1.0.0 ← 0.9.1 diff Nov 21, 2024
updated 0.9.1 ← 0.9.0 diff Feb 21, 2024
updated 0.9.0 ← 0.8.1 diff Feb 7, 2024
updated 0.8.1 ← 0.8.0 diff Jan 14, 2024
updated 0.8.0 ← 0.7.2 diff Dec 6, 2023
updated 0.7.2 ← 0.7.1 diff Aug 7, 2023
updated 0.7.1 ← 0.7.0 diff Jul 13, 2023
updated 0.7.0 ← 0.6.0 diff Jun 25, 2023
updated 0.6.0 ← 0.5.1 diff Jun 6, 2023