Update R version for RStudio
Updating R in terminal/command prompt does not update R for the console of RStudio.
RStudio uses installed R from https://cran.rstudio.com/.
So, get R-update there, and you will find the updated version in the console on RStudio.
That’s all.