Tools for risk computation and geospatial reasoning, in R