"installation of package ‘tidyverse’ had non-zero exit status"

Below are the messages I get on the console when I try to install tidyverse.
The messages were very long and it's in the google document (link shared below).
I am running the latest version of Ubuntu on VMware.

Your help would be deeply appreciated as I am a student trying to learn some data science.

You have a cascade of errors but all starts here

ERROR: failed to lock directory ‘/home/gjk/R/x86_64-pc-linux-gnu-library/3.6’ for modifying
Try removing ‘/home/gjk/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-Rcpp’

Follow the indication on the error message and delete that file, then try to install again.

Also, for future posts, is better if you post the error message here directly as formatted code

> library("tidyverse")
── Attaching packages ─────────────────────────────────────────────── tidyverse 1.3.0 ──
✓ ggplot2 3.2.1     ✓ purrr   0.3.3
✓ tibble  2.1.3     ✓ dplyr   0.8.4
✓ tidyr   1.0.2     ✓ stringr 1.4.0
✓ readr   1.3.1     ✓ forcats 0.5.0
── Conflicts ────────────────────────────────────────────────── tidyverse_conflicts() ──
x dplyr::filter() masks stats::filter()
x dplyr::lag()    masks stats::lag()

Thank you for assisting me as well as educating me on how to properly post on the forums.
Appreciate it!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.