I am new to R. I was trying to install ggtree in R but i am continuously getting the following error Installation paths not writeable, unable to update packages path: /usr/lib/R/library packages: codetools, lattice, MASS, spatial Warning messages: 1: In install.packages(...) : installation of package ‘ape’ had non-zero exit status 2: In install.packages(...) : installation of package ‘tidytree’ had non-zero exit status 3: In install.packages(...) : installation of package ‘treeio’ had non-zero exit status 4: In install.packages(...) : installation of package ‘ggtree’ had non-zero exit status
My R version is the most updated and I am using Ubuntu 22.
Let me know how can I resolve the issue.