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.

1
  • 2
    Can you paste the output of which R? Edit: never mind. Feb 20, 2014 at 13:16

1 Answer 1

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.

3
  • 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, 2019 at 19:43
  • My packages were in /usr/local/lib/R/site-library -- if this directory exists, try removing that Feb 11, 2020 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, 2020 at 13:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .