Which version of R is running in my computer?

showkey picture showkey · Apr 13, 2013 · Viewed 101.9k times · Source

There are two R directories on my computer:
one is /home/R-2.15.2,the other is /home/R-2.15.1,
when I input R , I can start R, now I want to know which R is running: 2.15.1 or 2.15.2?

Answer

yujingz picture yujingz · Apr 13, 2013

In addition to @Piotr Jaszkowski, R.Version() should do the work as well