0

I currently have R version 3.4.4 on my R Studio on my MacOS Mojave version 10.14 but I am trying to download R version > 4. I need this because the package Gviz will only work on 4+ R version. Any suggestions on how to download R version > 4 would be highly appreciated.

I have already used the following methods but they have not worked:

Method 1

RStudio.Version() 
install.packages("installr") 
library(installr) 
updateR()

Method 2

From within RStudio, went to Help > Check for Updates to install newer version of RStudio (if available, optional). To update packages, went to Tools > Check for Package Updates. If updates are available, select All (or just tidyverse), and clicked Install Updates.

With both methods I ended up with R version 3.4.4 but I need R version >4

mk894
  • 33
  • 7
  • 1
    Is there a reason you can't just [download R](https://cloud.r-project.org/)? – r2evans Jun 01 '21 at 16:53
  • I am using MacOS Mojave version 10.14 – mk894 Jun 01 '21 at 16:54
  • I download R and the newest version but it just gives me R version 3.4.4 for some reason. – mk894 Jun 01 '21 at 16:55
  • As @r2evans suggested, first install the latest version of R, than go to Tools -> Global Options, and switch the R Version to the version you installed (4.1.0). – Phil Jun 01 '21 at 16:55
  • @Phil where is the R Version on the Global Options? – mk894 Jun 01 '21 at 16:57
  • Literally the first line: https://i.imgur.com/nYKeDu8.png – Phil Jun 01 '21 at 16:58
  • Unfortunately it does not show that it only shows R sessions and then below it has Default working directory (when not in a project): – mk894 Jun 01 '21 at 17:02
  • 1
    If RStudio is not offering a newer version, that means that either (a) the R-4 install did not complete successfully, or (b) it is not visible in your system PATH. Realize that RStudio cannot see changes to the env-vars unless it is restarted, so perhaps restarting RStudio will allow it to see the differences. If not, then you need to handle that as a different problem (https://cloud.r-project.org/bin/windows/base/rw-FAQ.html#Rcmd-is-not-found-in-my-PATH_0021). – r2evans Jun 01 '21 at 17:04

1 Answers1

1

These steps are usually the quickest way to resolve issues installing/updating R (macOS):

If you've completed these steps and are still having difficulties then it's time to ask for help.

jared_mamrot
  • 22,354
  • 4
  • 21
  • 46