Skip to content

Simulation Runs on Rstudio cloud but fails when run locally #26

Discussion options

You must be logged in to vote

Hi there,
When loading and writing the climate suitability to file you use probabilities ranging 0-1. However, RangeShiftR expects percentage value 0-100%. Thus, you code in line 44 should look like this:

raster::writeRaster(round(AllData2a*100), format="ascii", filename = "Inputs/climate_suitabilitya", NAflag = -9, overwrite = T, bylayer = T, datatype = "INT2U")

Best,
Damaris

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jeankwizera
Comment options

Answer selected by damariszurell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants