Some problems about duplicated packages

The libraries are in :

R
.libPaths()

I don't know why but I should set these permissions to allow some packages to be updated.
sudo chmod -R 777 /usr/lib/R/library
sudo chmod -R 777 /usr/share/R
sudo chmod -R 777 /usr/lib/R/site-library
sudo chmod -R 777 /usr/local/lib/R/site-library

To have the list of duplicated packages:
library(HelpersMG)
duplicate.packages()

To remove some packages, I was forced to run R as root. I don't know why.
To do this from Rstudio: (replace PASSWORD, PKG and LIB what what is needed.

system("echo PASSWORD | sudo -k -S R -e 'remove.packages(\"PKG\", lib=\"LIB\")'")

Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

Install treemix in ubuntu 20.04

stepAIC from package MASS with AICc