2020-11-26T05:00:00Z
I am using rstudio 1.4.904. Reviewing the installed packages, I find that several of them are installed twice in different folders and of different versions. Two of those folders, / usr / lib / R / library and / lib / R / site-library have root as owner and user, the other folder / home / hugo / R / x86_64-pc-linux-gnu-library / 4.0 has as owner and user hugo.
When from RStudio I try to remove a package located in the root folders, the command is executed without providing an error message, but the package remains in those folders.
I can remove the existing duplicate packages from the root folders from the command line, but I don't know if RStudio has its own database of installed packages, because if this is the case, it would be generating a problem for RStudio.
My question is: how can I remove duplicate packages from folders owned by root? In my opinion, in the R installation, packages should only be stored in the root folders, if you are working on a multi-user computer or on a server. In the case of a computer with only one user, the installation of R and RStudio should only place in the root folders, the executables and minimum packages necessary for R and RStudio to run.