“…The workflow for fitting and testing the models was fully implemented as R code, and it is available in the supplementary information. It was based on the codes of Bevan et al (2013) and Riris (2020), and it draws on functions from several R packages, such as 'sp ', 'rgdal', 'raster', 'MASS', 'maptools', 'dismo', 'DAAG' and 'spatstat' (Pebesma and Bivand, 2005;Maindonald and Braun, 2010;Baddeley and Turner, 2005;Ripley et al, 2022;Hijmans, 2021;Hijmans et al, 2022).…”