I can't install sf (and other packages)

Hi, I have installed packages in the past, but whenever I try to install sf, I'm getting this error. Can someone help?

install.packages("sf")
--- Please select a CRAN mirror for use in this session ---

  There is a binary version available but the source version is later:
   binary source needs_compilation
sf  1.0-3  1.0-4              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) no
trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.1/sf_1.0-3.tgz'
Content type 'application/x-gzip' length 92846154 bytes (88.5 MB)
================================================
downloaded 86.1 MB

Error in download.file(url, destfile, method, mode = "wb", ...) : 
  download from 'https://cloud.r-project.org/bin/macosx/contrib/4.1/sf_1.0-3.tgz' failed
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
  downloaded length 90328123 != reported length 92846154
2: In download.file(url, destfile, method, mode = "wb", ...) :
  URL 'https://cloud.r-project.org/bin/macosx/contrib/4.1/sf_1.0-3.tgz': Timeout of 60 seconds was reached
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package ‘sf’ failed