Installing R on Mac OS is similar to Windows. Once again, The easiest way is to install it through CRAN by going to the CRAN downloads page and following the links as shown in the video below: The next step is to click on the 'R-3.6.2.pkg' (or newer version) file to begin the installation. Oct 21, 2020 AutoCAD for Mac software — it’s AutoCAD, for the Mac, bringing robust 3D free-form design tools and powerful drafting capabilities to your platform of choice.It takes full advantage of the Mac OS X platform, with an intuitive, graphical user interface that makes it easy to bring your ideas to life.
- Download Rstudio For Mac
- How To Download R For Mac Os Xvirtuallasopa Version
- How To Download R For Mac Os Xvirtuallasopa 10.13
- How To Download R For Mac
- How To Download R For Mac Os Xvirtuallasopa Virtualbox
Installing R and LaTeX
Contents
2 Windows
3 MAC OS X
4 Linux
5 Official Presentation Format
6 Further Information
7 Frequently Asked Questions
8 Acknowledgment
1 Introduction
This article explains how to set up an R deveploment enviroment (including LATEX)on various operating systems. We provide a set of instructions for the three majordesktop operating systems Windows, Mac OS X and Linux (Debian-basedsystems in particular) in Sections 2, 3, and 4, respectively. Section 6 includesreferences to related articles and further resources. For more information about Rplease visit the website of the R Project at http://www.r-project.org/.Additional informations about installation and administration of R is available inthe manual at http://cran.r-project.org/doc/manuals/R-admin.html.Further questions not covered by this article and feedback may be sent tostatmath@wu.ac.at.
2 Windows
The instructions in this manual have been written to run/work under Windows 7.Nevertheless, it is possible to configure the R development enviroment on otherWindows versions. To set up a basic R development environment under Windows,please follow the steps below:
- Install the current version of R (available from http://CRAN.R-project.org/bin/windows/base/).
- Install the R for Windows toolset (known as Rtools, available from http://cran.at.r-project.org/bin/windows/Rtools/ ).
- Set up a suitable LATEX environment, preferably installing all available packages and updates (we recommend TeX Live http://www.tug.org/texlive/ or another distribution like MiKTEXhttp://miktex.org/).
- Update the PATHs and further environment variables.
Setting up R and LATEX explained in pictures
Installing the R for Windows Toolset
Rtools includes various software packages needed for successfully building Rand R packages (usually packages containing C or FORTRAN source code).It provides Windows with a set of compilers, libraries and various othertools.
LATEXEnvironment
There are two popular options for installing a LATEX environment under Windows.We are supporting the TeX Live distribution but MiKTEX can also be used. While itis possible to download and use the net installer, we recommend to download theISO-Image from http://mirror.ctan.org/systems/texlive/Images/, mount it toa virtual drive (e.g., using the program DAEMON Tools Lite) and install TeX Liveincluding all packages. In order to update the distribution use the TeX Live Manager(Go to Start → All Programs → TeX Live <Version>→ TeX Live Manager → fullinstallation), (<Version> has to be replaced with the installed TeX Live version).Note that the installation of the LATEX distribution and the corresponding updateprocess could take several hours.
PATH and further environment variables
Presumably the most important step after the installation procedures is to updatethe PATH environment variable.
To do so go to: Start → Control Panel → System → Advanced system settings →Advanced → Enviroment Variables.
Search in the System variable list for the PATH variable. Click on edit and enter thecorresponding PATHs into the Variable value field. The PATHs to the ‘bin, x64’ or‘i386’ directories of the following programs have to be included (if they were notincluded automatically):
- R
- Rtools
- TeX Live
Note that the order of the entries is important. Separate them by semicolon. Donot delete other entries, Windows may need them. An example is given below,however there might be different PATHs on the system:
(*) | ‘C:Program FilesRR-3.1.1binx64;’ |
(*) | ‘C:Rtoolsbin;’ |
(*) | ‘C:Rtoolsgcc-4.6.3bin;’ |
(*) | ‘C:texlive2014binwin32;’ |
(**) | ‘%SystemRoot%system32;’ |
(**) | ‘%SystemRoot%;%SystemRoot%System32Wbem;’ |
(**) | ‘%SYSTEMROOT%System32WindowsPowerShellv1.0;’ |
(*) are relevant PATH for the R development enviroment, (**) are relevant PATH for Windows (do not change them)
RStudio and alternative Text Editors
We recommend using the RStudio IDE which can be downloaded from http://www.rstudio.com/products/rstudio/download/.
Alternatively, here are some links pointing to URLs where it is possible to download other suitable text editors:
emacs | http://vgoulet.act.ulaval.ca/en/emacs/windows/ |
Notepad++ | http://notepad-plus-plus.org/download |
TEXnicCenter | http://www.texniccenter.org/download/ |
TeXworks | http://www.tug.org/texworks/ |
Tinn-R | http://sourceforge.net/projects/tinn-r/ |
vim | http://www.vim.org/download.php |
3 MAC OS X
In order to successfully set up a basic development environment for R-related projectsunder MAC OS X it is necessary to follow these four steps:
- Install the current version of R (available from http://CRAN.R-project.org/bin/macosx/ ).
- Install a LATEX environment (e.g., MacTeX).
- Install XCode.
- Install the GNU Fortran compiler (gfortran).
LATEXenvironment
A readily usable environment for typesetting scientific articles with LATEX isprovided with the MacTeX distribution available from http://www.tug.org/mactex/.This distribution also includes a text editor named TeXShop.
XCode
Compilers are needed for installing R packages containing source code typicallywritten in C or FORTRAN. A set of C compilers for Mac OS X is providedin XCode, the basic development tools for Mac OS X. Installable eitherfrom the DVD containing the operating system that came with the Mac or,after downloading the latest version from the Apple Developer website athttp://developer.apple.com/technology/xcode.html.
GNU FORTRAN compiler
Unfortunately, the compiler gfortran is not included in XCode. Luckily, since Rversion 2.5.0 the compiler is installed with the R Mac OS X installer (see Step 1:Installing the current version of R). Nevertheless, it is possible to install it manuallyusing the packages provided at http://r.research.att.com/tools/, in case anyproblems are encountered when setting up the compiler.
Text Editors
Links pointing to URLs where it is possible to download suitable text editors:
emacs | http://vgoulet.act.ulaval.ca/en/emacs/mac/ |
Rstudio | http://www.rstudio.org/ide/download/ |
LyX | http://www.lyx.org/Download/ |
TeXworks | http://www.tug.org/texworks/#Getting_TeXworks |
vim | http://www.vim.org/download.php |
4 Linux
In this article we focus on Debian-based distributions, as it is hardly possibleto provide a complete set of instructions for every Linux distribution. Themost prominent of such Debian-based Linux distributions is called Ubuntu(http://www.ubuntu.com). Nevertheless, the instructions mentioned in this sectionshould usually work on any Debian-based system.
In order to successfully set up a basic R development environment under Ubuntufollow these three steps:
- Install the current version of R (r-base and r-recommended packages).
- Install a LATEX environment (e.g., TeX Live available by installing the texlive-full).
- Install compilers and other development packages (r-base-dev packages).
Installing R
R is provided in form of a binary Debian package called r-base. It can be installedeither by using the Synaptic Package Manager or by issuing the following commandon the command prompt:
sudo aptitude install r-base r-recommended
To install a more recent version of R follow the steps provided on the website. ForDebian at http://cran.r-project.org/bin/linux/debian/ or for Ubuntu athttp://cran.r-project.org/bin/linux/ubuntu/.
Download Rstudio For Mac
LATEXenvironment
A readily usable environment for typesetting scientific articles with LATEX isprovided with the TeX Live distribution available from www.tug.org/texlive/.Luckily, one can install the complete distribution with the texlive-full package veryeasily. It can be installed either using the Synaptic Package Manager or by issuingthe following command:
sudo aptitude install texlive-full texlive-xetex
In order to use the wu-beamerstyle one additionally needs to install thettf-mscorefonts-installer.
sudo aptitude install ttf-mscorefonts-installer
Compilers and Other Tools
Typically, compilers and other development tools are needed in a reasonabledevelopment environment. Those tools are made available on Debian-based systemssimply by installing the r-base-dev package. It can be installed either using theSynaptic Package Manager or by issuing the following command:
sudo aptitude install r-base-dev
RStudio and Text Editors
We recommend using the RStudio IDE which can be downloaded from http://www.rstudio.com/products/rstudio/download/.
The package can than be installed via commandline:
sudo dpkg -i /PathToYourDownloadedFile on Debian/Ubuntu
sudo rpm -i /PathToYourDownloadedFile on Fedora/openSUSE
Please feel free to install the editors you need as mentioned above via SynapticPackage Manager or via commandline:
sudo aptitude install i.e. emacs, vim and so on.
5 Official Presentation Format
As your lecturer may want you to use the wubeamer style for your presentation withinthe scope of our department’s courses, please feel free to download it via svn from theWU’s svn Repository http://www.wu.ac.at/it/instructions/latex_template.Please note that according to our departments understanding the use of the templateis permitted exclusively for courses at the WU. In order to use the wu-beamerstyle(official presentation format, https://svn.wu-wien.ac.at/wu/ login with the WU SVNRepository Login i.e. h+matriculation number + powernet password) oneadditionally needs to install the ttf-mscorefonts-installer.
6 Further Information
More information about the topic can be retrieved from the following references.
- R Installation and Administration:
- Windows
http://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Windows - Mac Os X
http://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Mac-OS-X - Unix/Linux
http://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Unix_002dalikes
- Windows
- Writing R Extensions (R-Project):
http://cran.r-project.org/doc/manuals/R-exts.html - Making R packages for the Mac:
http://personality-project.org/r/makingpackages.html - Making R packages under Windows:
http://cran.r-project.org/doc/contrib/Graves+DoraiRaj-RPackageDevelopment.pdf and http://www.math.ncu.edu.tw/~chenwc/R_note/reference/package/packages.pdf - TEX Formula Quick Reference (Wikipedia):
http://en.wikipedia.org/wiki/Help:Displaying_a_formula - LATEX unter Windows (German):
http://schlosser.info/latexsystem.html
7 Frequently Asked Questions
- TeX Live (Windows):
- How to make TeX Live recognize ‘Sweave.sty’?
Answer:
Go to the R installation directory, i.e., the directory where R has been installed to. We call this directory ‘RHOME’. Search for the LATEX style sheet called ‘Sweave.sty’. Typically it is located in the folder ‘<RHOME>sharetexmf’. Next, one needs to copy the corresponding files to the “personal“ LATEX libary. We will call the directory where TeX Live has been installed ‘TEXHOME’. The “personal“ LATEX library is located in the directory ‘<TEXHOME>texmftexlatex’ and ‘<TEXHOME>texmf-localtexlatex’. Copy the contents of the ‘<RHOME>sharetexmf’ latex folder to the ‘Sweave’ folder in the “personal“ LATEX library. If the ‘Sweave’ folder is not found in the latex library, create it and copy the contents into this folder.
Eventually the package database needs to be updated.
Go to Start and open the command line interface by entering cmd. Once the command line interface starts and update the database by entering texhash (use the command texhash.exe). - How to install further LATEX packages?
Answer: Go to Start → All Programs → TeX Live <Version>→TeX Live Manager. (<Version> has to be replaced with the installed TeX Live version)
Search for the packages needed, then select the package and click on Install. (It is also possible to select all packages, but this will include many language packs which are probably not needed).
- Note that the installation and the update process of TeX Live can take a very long time. Sometimes this can lead to the sytem becoming unresponsive, in that case simply restart the corresponding process.
- How to make TeX Live recognize ‘Sweave.sty’?
- MiKTEX(Windows):
- How to make MiKTEX recognize ‘Sweave.sty’?
Answer: In Pictures
Go to the R Installation directory, i.e., the directory where R has been installed to. We call this directory ‘RHOME’. Search for the LATEX style sheet called ‘Sweave.sty’. Typically, it is located in the folder ‘<RHOME>sharetexmf’. Copy the contents of this folder to the ‘Sweave’ folder in the “personal” LATEX library. The location of the LATEX library can be seen by going to Start → All Programs→ MiKTeX<Version>1→ Maintenance → Settings.Go to the Roots tab, and mark the “Show MiKTeX-maintained root directories” box. Look at the Description where it says “UserInstall,UserConfig”. The coresponding PATH points to the location. Usually it is in ‘<RHOME>Application DataMiKTeX<Version>texlatex’; (<Version>has to be replaced with the installed MiKTEX version). If there is no ‘latex’ and/or ‘Sweave’ folder, create it and copy the contents into this folder.
- How to install further LATEX packages?
Answer: Go to Start → All Programs → MiKTeX<Version>1→Maintenance(Admin) → Package Manager(Admin); (<Version>has to be replaced with the installed MiKTEX version).
Search for the package needed, then right click on the package name and click on Install.
- MikTEX offers downloading missing packages but fails.
Answer: Note that it is required to be able to write to the system library of MiKTEX. Typically this can only be achieved through logging in with Administrator privileges.
- How to make MiKTEX recognize ‘Sweave.sty’?
8 Acknowledgment
An earlier version of this manual was written by Ksenia Fraczek.
How To Download R For Mac Os Xvirtuallasopa Version
2011-11-29 cyDevelopment Tools and Libraries
CRAN R 4.0.0 builds and higher no longer use any custom compilers and thus this directory is no longer relevant. We now use Apple Xcode 10.1 and GNU Fortran 8.2 from https://github.com/fxcoudert/gfortran-for-macOS/releases.For more details on compiling R, please see alsohttps://mac.R-project.org/tools/Previous tools
The following is provided as support of older versions of R. If you use R 4.0.0 or higher, please disregard and read the top section.How To Download R For Mac Os Xvirtuallasopa 10.13
R 3.5.0-3.6.3 El Capitan binaries and higer were using more recent Clang compiler and GNU Fortran 6.1 to provide OpenMP parallelization support and C++17 standard features. If you want to compile R packages from sources, please download GNU Fortran binary from the official GNU Fortran Binaries page - in particular OS X 10.11 gfortran 6.1. Alternatively, we are providing a copy here as well as Clang binaries for OS X 10.11 and higher - see below for the download links.
How To Download R For Mac
Files:
clang-8.0.0.pkg (OS X 10.11+, signed, 64-bit) MD5-hash: 664582b0722cb59802cb762b2ad7548b (ca. 482Mb) | Clang 8.0.0 for OS X 10.11 and higher, release build for x86_64, signed package, installs into /usr/local/clang8. To be used with El Capitan builds of R 3.7.0 and higher. It is an installer version of the official LLVM released binaries only modified to use the path above. |
clang-7.0.0.pkg (OS X 10.11+, signed, 64-bit) MD5-hash: cef3fd2a5c165d00f9941f64ea4024f7 (ca. 463Mb) | Clang 7.0.0 for OS X 10.11 and higher, release build for x86_64, signed package, installs into /usr/local/clang7. To be used with El Capitan builds of R 3.6.x. It is an installer version of the official LLVM released binaries only modified to use the path above. |
clang-6.0.0.pkg (OS X 10.11+, signed, 64-bit) MD5-hash: c29700c4e7b2914073ef7e741eb105bc (ca. 418Mb) | Clang 6.0.0 for OS X 10.11 and higher, static build for x86_64, signed package, installs into /usr/local/clang6. To be used with El Capitan builds of R 3.5.x. |
gfortran-6.1.pkg (OS X 10.11+, signed, 64-bit) MD5-hash: 201026216e8b373d9cd2efc0cc474bb8 (ca. 73Mb) | GNU Fortran 6.1 for OS X 10.11 and higher - a copy from GFortranBinaries pages for x86_64, signed package, installs into /usr/local/gfortran (identical content, re-packaged to a flat Installer package and signed). To be used with El Capitan builds of R. |
The following binaries are obsolete and only provided for historical reasons | |
gfortran-4.2.3.pkg (OS X 10.5+, signed, 64-bit driver) MD5-hash: 8783f803038abe6487a362ad5b8995ea (ca. 27MB) gfortran-4.2.3.dmg (OS X 10.4, 32-bit driver) MD5-hash: 9551fc46f55537dd1db581154daf27ef (ca. 27MB) | Universal GNU Fortran 4.2.3 for Mac OS X 10.4 and higher. It is necessary in order to build R packages from sources that contain Fortran code. Unlike many other builds, this is a fully universal build of GNU Fortran that uses Apple's driver and supports all target architectures (i386, ppc, x86_64 and ppc64). As such it fully supports compilation into fat files like gfortran -arch i386 -arch ppc -arch x86_64 -arch ppc64 t.f -o ton both Intel Macs and PowerPC Macs (32- and 64-bit). Dependent libraries are fat as well, avoiding problems known from other Fortran builds (such as those from HPC). It installs in /usr/local and comes with an uninstall-script. |
tcltk-8.5.5-x11.pkg (OS X 10.5+, signed) MD5-hash: e7c406d91762ffdc4539b23c5b5a3ab4 (ca. 9MB) tcltk-8.5.5-x11.dmg (OS X 10.4) MD5-hash: c32dda1b9f2c2776a02cec4e03befc76 (ca. 9MB) | Universal build of Tcl/Tk 8.5.5 for X11 (32-bit and 64-bit). This library is necessary in order to use the tcltk R package (for R 2.8.0 - 2.15.3 only!). It installs in /usr/local. Requires Mac OS X 10.4 (Tiger) or higher for 32-bit R and Mac OS X 10.5 (Leopard) or higher for 64-bit R. NOTE: R 3.0.0 and higher comes bundled with Tck/Tk 8.6.0 so you do not need this package |
How To Download R For Mac Os Xvirtuallasopa Virtualbox
For other (optional) 3rd party libraries for development see http://mac.R-project.org/libs/. The devpack has been superseded by those libraries. For R you may want to download and install libpng, libjpeg, readline, freetype, fontconfig, pixman and cairo.
Source code for all 3rd party libraries can be found at http://mac.R-project.org/src/
The dependency libraries used by the CRAN macOS build system are now managed by build recipes. Package authors wishing to add static dependendies can create a pull request to add a dependency.
Subdirectories:
old | Previous versions of tools as supplied with legacy R versions. |
You may also want to read the R FAQ and R for Mac OS X FAQ. For discussion of Mac-related topics and reporting Mac-specific bugs, please use the R-SIG-Mac mailing list.
Information, tools and most recent daily builds of the R GUI, R-patched and R-devel can be found at http://mac.R-project.org/. Please visit that page especially during beta stages to help us test the Mac OS X binaries before final release! The page also contains links to experimental builds as such 64-bit R for OS X.
Link to corresponding sources: http://mac.R-project.org/src/
Last modified: 2020/04/24, by Simon Urbanek