CRAN package installation fails with 404

We are trying to restore an R packrat environment that includes the latest version of the cluster package (2.1.0), however, it fails with a 404. Some previous packages are installed without problems from the same CRAN repository.

The environment works on my local machine, what are we missing?

I swapped packrat for renv (it is more stable) and then I found out that although we were trying to load R 4, the old 3.2 was being loaded and thus cluster installation was failing since its version for that old R is not in CRAN anymore