I have messed up R's Makeconf file. I tried:

sudo apt-get --purge remove r-base
sudo apt-get --purge remove r-base-dev

--I got R in the first place by doing:

sudo apt-get install r-base
sudo apt-get install r-base-dev

but when I type


R still starts. Also the Makeconf file is still the one I messed up.

  • 1
    Can you paste the output of which R? Edit: never mind. – saiarcot895 Feb 20 '14 at 13:16

The r-base package is just a metapackage that also installs r-base-core and r-base-recommended. You need to remove r-base-core to get rid of the executable and the makeconf.

  • 1
    This did not for me; R is completely broken - how do I uninstall it? Purge it totally! I would like to start again. – Andor Kiss Jul 31 '19 at 19:43
  • My packages were in /usr/local/lib/R/site-library -- if this directory exists, try removing that – spinup Feb 11 '20 at 18:38
  • 2
    The .libPaths() command in R will show all the package locations on your device. Prior to removing R, run this command and delete these directories. Sorry this comment is probably too little too late for many, but I hope it helps. – Rmurphy Mar 27 '20 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.