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()
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.
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
Enregistrer un commentaire