I'm trying to work with the statistical package R. R is already installed. sudo apt-get install r-base-dev
returns:
"r-base-dev is already the newest version (3.4.3-1xenial0).
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded."
However, which R
gives me "R not found".
Now, how can I locate R? Is it really installed?
(Ubuntu 16.04)
ls -l /usr/bin/R
? – mikewhatever Jan 13 '18 at 21:39find / -type f -name "R"
returns hundreds of lines, but oddly these two:/usr/lib/R/bin/R
and/usr/lib/R/bin/exec/R
. However, these directories don't exist in the system (I checked in Nautilus) andls -l /usr/bin/R
returns "No such file or directory". – Jecogeo Jan 13 '18 at 21:50/usr/bin/R
is provided by packager-base-core
, notr-base-dev
. The former should have been installed as a dependency of the latter - is it possible you removed it at some point? – steeldriver Jan 13 '18 at 22:44