Hello, unfortunately, I asked ChatGPT for help in installing a new version of R and followed the steps to 'Uninstall the Existing R Installation (Optional)' with 'sudo apt-get remove r-base r-base-core r-recommended' and 'Remove Configuration Files' with the 'sudo rm -rf /usr/lib/R' and 'sudo rm -rf /usr/local/lib/R' commands. Now, when I followed the instructions to install R from the CRAN website, I encountered the following error message in the terminal: '/usr/local/bin/R: line 249: /usr/local/lib/R/etc/ldpaths: No such file or directory /usr/local/bin/R: line 272: /usr/local/lib/R/bin/exec/R: No such file or directory.' I'm not sure how to proceed; can someone please help me? Thank you.
Hi @Brunamtq when you install a new version, according with my experience, dont remove the other old versions. Only install a new version. The same way with Rstudio.
Now about this messages /usr/local/lib/R
this likely happened because you've removed this directory when uninstalling R. To resolve this, you need to reinstall R
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.