'Installing package stringi: icudt could not be downloaded. check your internet connectivity

I was trying to install stringi on R and I have this error: on R gui interface

icudt download failed
Error in eval(ei, envir) : 
  icudt could not be downloaded. check your internet connectivity
* removing 'C:/Users/zzaroca/AppData/Local/Programs/R/R-4.2.0/library/stringi'
Warning message:
In install.packages(files[tarballs], .libPaths()[1L], repos = NULL,  :

and this on R studio:

Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.2:
  cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/PACKAGES'

What I can do to solve this problem? My connection to internet works perfectly and I'm trying to install on my company's computer.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source