21

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

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

user2413
  • 14,337

1 Answers1

29

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.

saiarcot895
  • 10,757
  • 2
  • 36
  • 39
  • 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 __ A Davis Feb 11 '20 at 18:38
  • 3
    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