As the support for the R package raster runs out, especially users of the R package RangeShiftR but also others will use terra to generate the raster input files. Unfortunately, terra::writeRaster() stores the cellsize as double. This leads to problems loading the raster files as within RangeShifter core files, cellsize is an integer.
To avoid having the same issue in the batch mode, I would suggest to add a temporary variable which reads in a double, but will be assigned as integer to the cellsize/resol variable.
As the support for the R package raster runs out, especially users of the R package RangeShiftR but also others will use terra to generate the raster input files. Unfortunately, terra::writeRaster() stores the cellsize as double. This leads to problems loading the raster files as within RangeShifter core files, cellsize is an integer. To avoid having the same issue in the batch mode, I would suggest to add a temporary variable which reads in a double, but will be assigned as integer to the cellsize/resol variable.