When supplying a SpatRaster stack (very large one dim = 98939, 173775, 2), to predict_spatial(), it throws back an
error: [names<-] incorrect number of names
If you generate provisory stack via generate_stack(), it works just fine and also if you stack two radnom generated rasters. Appart from size, the only difference is having one source file, while stacking two selected files have two source links. I have tried to track down the error, and went all the way down to Task class, where it seems that as_data_backend returns an error.
When supplying a SpatRaster stack (very large one dim = 98939, 173775, 2), to predict_spatial(), it throws back an
error: [names<-] incorrect number of names
If you generate provisory stack via generate_stack(), it works just fine and also if you stack two radnom generated rasters. Appart from size, the only difference is having one source file, while stacking two selected files have two source links. I have tried to track down the error, and went all the way down to Task class, where it seems that as_data_backend returns an error.