I am currently taking data camp courses to learn R and would like to download R and RStudio for my mac. I need assistance in what to do for R as the website [https://cran.r-project.org/bin/macosx/] has me a bit confused. I am running OSX 10.13.16
Click on the link that says R-3.5.1.pkg — the R installer will begin downloading. It will most likely wind up in your Downloads folder.
Go to your Downloads folder and find the file called R-3.5.1.pkg. Double-click on it to open the R installer.
The installer will lead you through the installation process.
When you're all done, it's OK to delete R-3.5.1.pkg, if you want.
Now you've done the basics! Hopefully this is enough for your DataCamp courses. However, it's increasingly necessary to have some R developer tools installed as well as R itself, since getting the latest versions of popular packages may require you to compile them from source. If you want, you can continue on to install these additional tools (or you can wait until you run into trouble later!).
Additional R Tools
XQuartz (allows you to use packages that depend on the X11 windowing system, a UNIX thing):
Long-term, I lightly recommend Homebrew, which via its brew cask command can install applications including both R and RStudio. In Terminal, install Homebrew (copy the command from the link above), then enter
brew cask install r-app
brew cask install rstudio
The benefit of this approach is that it makes it really easy to update later:
brew cask upgrade
Homebrew Cask can also install other full applications, which is sometimes handy, though Homebrew itself was originally intended (and is still heavily used for) installing and updating command line utilities, e.g. git, compilers, pandoc (for RMarkdown), imagemagick, hugo (for blogdown), etc.
To be clear, Homebrew is by no means necessary (particularly if the command line is still daunting), and you can always start using it later if you choose. It's pretty awesome, though.
Sorry I am new to all of this,so can you explain home-brew a little more in depth please. What I'm gathering from your post and their website is that home-brew manages all files better and basically once installed... updating R and RStudio will be more simple because I can just check the command prompt for updates?
much of which you can access through the command line once you get comfortable. They make it seem a lot more complicated than it is, though. For the basics (all most people ever need), see my post here: