How to find the R version you are using?

Most of the times, we need to use packages in R and some packages are restricted to different versions in R, generally to newer versions. Therefore, we might need to find which version of R we are using. To find the R version, we can directly use the command R.Version().

Example

<span class="pln">R</span><span class="pun">.</span><span class="pln">version</span><span class="pun">.</span><span class="kwd">string</span>

Output

[1] "R version 4.0.2 (2020?06?22)"
Updated on: 2026-03-11T20:07:51+05:30

47K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements