Hi Mike,
Today I've been trying to install NicheMapR in a machine that runs archlinux, and that uses gfortran version 15.1.1. Installing it in Debian works fine, but it uses gfortran 12.2.0. With gfortran 15, when compiling the package i got:
Error: Interface mismatch in dummy procedure at (1) conflicts with (2): 'funwing' is not a function
I tried different things, but I only managed to compile the program passing a flag to the compiler forcing it to be less strict with interface mistmatches (and in general, as far as I undesrtand what the flag does). For that I had to create a Makevars file in src with the following line that passes the flag to the compiler:
PKG_FFLAGS = -std=legacy
With that, the error turned into a warning and NicheMapR compiled. I don't think that this would cause any issue to users using an older version of gfortran (or in other OSs, I haven't tried any of those cases though), so it might be good to have that file in case gfortran is updated in other OSs.
All the best,
Urtzi