Is there a way to force pause a scrape/function (not talking about Sys.sleep)?

Is there a way to pause a scrape/function in R kind of like how you can terminate the R session by clicking the stop button?

I'm not talking about Sys.sleep() here, I mean more if I know I'm going to be losing internet connection for a bit, but don't want to lose my scraping progress and want to resume it later.

For whatever it's worth, I've tried pressing Esc and clicking Interrupt R, but I don't think that they're doing anything.