(R-admin.info)Installing R under macOS


Next: Running R Prev: Installing R under Windows Up: Top
Enter node , (file) or (file)node

4 Installing R under macOS
**************************

('macOS' was known as 'OS X' from 2012-2016 and as 'Mac OS X' before
that.)

   The front page of a CRAN site has a link 'Download R for (Mac) OS X'.
Click on that, then download the file 'R-3.5.2.pkg' and install it.
This runs on macOS 10.11 and later (El Capitan, Sierra, High Sierra,
Mojave, ...).

   Installers for R-patched and R-devel are usually available from
<https://r.research.att.com>.  (Some of these packages are unsigned: to
install those Control/right/two-finger click, select 'Open with' and
'Installer'.)

   For some older versions of the OS you can in principle (it is little
tested) install R from the sources (see Note: macOS).

   It is important that if you use a binary installer package that your
OS is fully updated: look at 'Updates' from the 'App Store' to be sure.
(If using XQuartz, check that is current.)

   To install, just double-click on the icon of the file you downloaded.
At the 'Installation Type' stage, note the option to 'Customize'.  This
currently shows four components: everyone will need the 'R Framework'
component: the remaining components are optional.  (The 'Tcl/Tk'
component is needed to use package *tcltk*.  The 'Texinfo' component is
only needed by those installing source packages or R from its sources.)

   This is an Apple Installer package.  If you encounter any problem
during the installation, please check the Installer log by clicking on
the "Window" menu and item "Installer Log".  The full output (select
"Show All Log") is useful for tracking down problems.  Note the the
installer is clever enough to try to upgrade the last-installed version
of the application where you installed it (which may not be where you
want this time ...).

   Various parts of the build require XQuartz to be installed: see
<https://xquartz.macosforge.org/>.  These include the *tcltk* package
and the 'X11' device: attempting to use these without XQuartz will
remind you.  Also for the cairographics-based devices (which are not
often used on macOS) such as 'png(type = "cairo")'.

   If you update your macOS version, you should re-install R (and
perhaps XQuartz): the installer may tailor the installation to the
current version of the OS.

   For building R from source, see Note: macOS.

Running R under macOS
Uninstalling under macOS
Multiple versions

automatically generated by info2www version 1.2.2.9