re-install R in ubuntu

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.


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.