The question is simple and there are similar questions in other languages, but not in R, as far as I could search.
I want to download a file in R code, but before downloading, I want to print out the size and estimation of the download time. Is there any way to do this directly in base R, or using curl utilities?