Articles

Affichage des articles du mai, 2019

Reinstall packages after updating R

When you change R version, you must reinstall manually all your installed packages. # before to update pkgins <- rownames(installed.packages()) save(pkgins, file = "pkgins.Rdata") # after updating load(file = "pkgins.Rdata") for (pkg in pkgins[is.na(match(pkgins, rownames(installed.packages())))]) {   if (pkg %in% pkgins[is.na(match(pkgins, rownames(installed.packages())))]) {     install.packages(pkg)   } } The packages shown with: pkgins[is.na(match(pkgins, rownames(installed.packages())))] Are not available in CRAN or produced an error when installed with new version.

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/