Error when updating packages in Ubuntu 18.04

When I update the packages, I get this error:
mise à jour de la liste HTML des packages dans '.Library'
Warning messages:
1: In file.create(f.tg) :
  impossible de créer le fichier '/usr/share/R/doc/html/packages.html', à cause de 'Permission denied'
2: In make.packages.html(.Library) :

  impossible de mettre à jour l'index HTML des packages

I tried to solve the problem using 

sudo chmod -R 777 /usr/share/R/

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