simon-smart88 / disagapp

R shiny app for disaggregation regression
https://simon-smart88.github.io/disagapp/
0 stars 0 forks source link

cov_landuse crashes R #22

Closed simon-smart88 closed 6 months ago

simon-smart88 commented 6 months ago

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.

simon-smart88 commented 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