Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove anaconda R from Ubuntu

I have been using ipython notebook to run some R scripts. Now the problem is I have two R versions on my Ubuntu 14.04. One is R.3.2.2 at /home/MYNAME/anaconda2/bin/R, another one is the R which I need for R studio, now the problem is I want to only use R.3.3.1 for my system as I need some advanced task to be done.

I use conda uninstall r, after running this, according to the print out, a lot of R related packages is removed, if i run conda uninstall r again, it said

Fetching package metadata .......
Using Anaconda Cloud api site https://api.anaconda.org
Solving package specifications: ..........
Error: no packages found to remove from environment: /home/MyName/anaconda2

but when I run Which R again, still it is the anaconda R, if I run R in the terminal, it is still R3.2.2, anyone knows how could I remove this anaconda R version?

like image 896
sunxd Avatar asked Oct 30 '22 23:10

sunxd


2 Answers

You probably needed to run hash -r in your session (or rehash if using zsh) to update your executables on PATH for the which command. A new terminal session would also fix the problem.

like image 109
kalefranz Avatar answered Nov 01 '22 13:11

kalefranz


you can try conda uninstall r-base, this will remove R and all of the R-library.

like image 20
radium Avatar answered Nov 01 '22 13:11

radium