R functions to simulate geographic ranges with environmental control