use terra::terraOptions and set progress > 0. If terra::extract makes chunks for working (and I think it does: https://rspatial.org/terra/pkg/1-introduction.html) then a progress bar should appear. But probably I'm missing something because it is not appearing even when trying to download a big amount of data.
divide the process via a loop or apply (or terra::sapp) and then create a progress bar with utils::txtProgressBar (https://r-coder.com/progress-bar-r/). I only achieved to do the progress bar with a loop, specifically when we use terra::extract, but the loop takes a lot more time than simply use terra::extract. So I don't think it is a good solution. But if we want something like this, it would be necessary to write a similar loop for terra::crop when the output is a raster.
@Pakillo could you take a look to this?
Options with other packages: https://stackoverflow.com/questions/51855528/progress-bar-for-non-loop-functions
I've tried different options. I see two ways: