Permission error in install packages in Ubuntu

If you have errors like: permission denied, enter these commands

cd /usr/lib/
sudo chmod -R a+w R
cd /usr/share/
sudo chmod -R a+w R
______________________________________
If you have this error in Ubuntu 22.04
lib = "/usr/local/lib/R/site-library"' ne peut être ouvert en écriture

Try:
cd /usr/local/lib/R
sudo chown -R root:staff site-library
sudo chmod -R 02775 site-library

Commentaires

Posts les plus consultés de ce blog

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

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04