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?
In the R terminal, type R. version . It's R. version .
R version 4.2.1 (Funny-Looking Kid) has been released on 2022-06-23. R version 4.2.0 (Vigorous Calisthenics) has been released on 2022-04-22. R version 4.1.3 (One Push-Up) was released on 2022-03-10.
You can select different versions of R by selecting it from the drop down list at the top of the browser window. The drop down menu will allow you to select the version of R you want to use. When you switch versions, the system will ask if you want to save your workspace before restarting your session.
For most users we would recommend using the 'native' build, that is the 32-bit version on 32-bit Windows and the 64-bit version of 64-bit Windows.
05/20/2021 Update:
It should be R.version
now
In addition to @Piotr Jaszkowski, R.Version()
should do the work as well
Run R --version
there's info about version on the first line.
Edit: If you ask this question then I bet that R is not running from any of these directories. Check $PATH env variable to get information where binaries are looked for and in which order.
Edit 2: Use type
shell command to find where binary for given command is stored, -a
for all paths, -f
for the hashed one (basically: most recently used).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With