R version of the NicheMapR microclimate model