I installed r language and r studio on my Fedora-20 system few months back. After that I got busy and now coming back to it. I wanted to know what my R version is, and I am unable to find any help on it. Is there any command/function I can use to find out version of r and rstudio?


There is a version command (not function) in R that provide a fulfilling overview on R environment and version:

> version
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
major          3                           
minor          2.1                         
year           2015                        
month          06                          
day            18                          
svn rev        68531                       
language       R                           
version.string R version 3.2.1 (2015-06-18)
nickname       World-Famous Astronaut
| improve this answer | |
  • 7
    Its not really a "command" (R doesn't have those) its an object with class "simple.list", and the print method for "simple.list" is activated when you type its name and its printed as you show. You can get bits out of it such as version$platform as with any R list. – Spacedman Jul 1 '15 at 17:01

Type R --version at the linux command line.

| improve this answer | |
  • 2
    Note: it has to be capital R. – marts Sep 30 '16 at 12:01

When you start the R console, it should say across the top

| improve this answer | |

You can use getRversion() or R.Version()$version.string to show info under R, if you want to check R version from Ubuntu you need to type:

dpkg -s r-base
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.