Problems with the updates in some packages

This is common problem and it happens (to me) all the time. This is connected either with LOCK folders or permissions.
I asked about it here: https://forum.posit.co/t/i-cant-install-dplyr-dev-version-and-rlang-dev-version-on-windows-10/48080.
But some of these packages are installing correctly without any hassle and some of them are not (especially group updates for dev versions packages). So in my humble opinion it depends on how the package is written and checked. Never happened when installing from CRAN.

My solution is as follows:

  1. Remove LOCK folders.
  2. Run RStudio with Admin rights.
  3. Install packages one by one not in a group way.
  4. If this really not working at all, I install a problematic package in a different folder (eg. Temp) and then I copy that folder into my R library system folder (with overwriting the existing folder) and it works.
    5.Then I wait until a package is on CRAN and I install it without any problems.

regards,