logo

General Engine for Eco-Evolutionary Simulations

This is the repository for the R-package of the gen3sis engine.

gen3sis is a spatially-explicit eco-evolutionary mechanistic model with a modular implementation. It allows exploring the consequences of ecological and macroevolutionary processes across realistic or theoretical spatio-temporal landscapes.

gen3sis is licensed under a GPLv3 License ETHZ 2020 <doi.org/10.5905/ethz-1007-251>

Package authorship according to: http://epub.wu.ac.at/3269/1/Report114.pdf

How to install gen3sis

gen3sis will be soon on CRAN. As soon as this is done, you can install the latest CRAN release via

install.packages("gen3sis")

Until then, you can install the latest development release from GitHub via

devtools::install_github(repo = "project-gen3sis/R-package/", 
  dependencies = TRUE, build_vignettes = TRUE)

Below the status of the automatic Travis CI tests on the master branch

Build Status

How to run one simple simulation

Load and run a simulation with the desired config and landscapes. Exemple data is provided with the package

library("gen3sis")
sim <- run_simulation(config = "config_xD.R", input_directory = "./simulations/World")

A summary statistics is stored at ‘sim’ more data can be save using the oberver function

How to visualize a simulation

Plot the summary statistics of a simulation

plot_summary(sim)

Check package version

Make sure you have the latest gen3sis version

#print package version
paste("gen3sis version:", packageVersion("gen3sis"))

Package mantined by Oskar Hagen (oskar@hagen.bio)