In this post, we will learn how to Change the R Version in RStudio. Knowing how to change the version of R in RStudio might be handy if you have to use packages not available in the most common version of R. Switching the version of R is quite simple; therefore, this post will be a short one. Before we proceed with the steps to change the R version, let us quickly check the current R version you are running. One way to see the version of R you are running is to execute the following code in your R console:
R.version$version.string
Code language: PHP (php)
In this example, we can see that we are running R version 4.3.1:
Additionally, it may be good to ensure you have the latest R version installed (to update R, you can use the updateR() function from the installr package). Now, let us move on to the following section, where we will walk through the straightforward steps to switch R versions seamlessly within RStudio.

