R files include the code of simulations and figures. R and package versions are detailed in each .R file.
model_figures_density_dependent : R code of the metacommunity model with density-dependent dispersal
model_spatial_heterogeneity : R code of the metacommunity model with spatial heterogeneity
model_figures_TL4 : R code of the metacommunity model combining density-dependent dispersal and spatial heterogeneity
model_rooney_2006 : R code reproducing the results of Rooney et al.'s (2006) model