Closed simon-smart88 closed 6 months ago
I think it was crashing as the rasters are too large for leaflet to plot so the function now resamples down to 1km from 100m. There was also some weirdness due to using terra::crop(mask = TRUE)
so have split that into two operations: https://github.com/simon-smart88/disagapp/commit/e69a2ad85ca75d5367f79e3f0f7db68937edb587
Not sure why - the function works as expected, but when used in the app it seems to download data again after the function has finished and then crashes R. e2e test no longer passes either.