r – Not able load packages after downloading

I have been using R on and off but recently when I tried to use it again and download packages (e.g. knitr), it wouldn’t download the packages at all and it keeps saying it’s in the Temp Folder. However, when I followed the path location for the package, it only showed up as a GZ file instead of a zip file.. I then cannot load the package at all.

I have been looking around online but nothing seems to work so far..

I’m using RStudio 2023.03.0+386 “Cherry Blossom” Release (3c53477afb13ab959aeb5b34df1f10c237b256c3, 2023-03-09) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.03.0+386 Chrome/108.0.5359.179 Electron/22.0.3 Safari/537.36

I tried to download new R versions, reboot the computer, download packages over again. I also tried to manually download the packages as zip file and put it in the permanent library folder (didn’t work). I suspected there could have been a locked folder in the Temp folder preventing the packages from being downloaded, so I tried to look for that but there wasn’t any.

Read more here: Source link