Windows Installation

The easiest way to install the Rcmdr package is via the Rgui Packages -> Install packagesmenu or via the command install.packages('Rcmdr') entered at the R > command prompt. R will ask you to select a CRAN mirror; pick the first, '0-Cloud' mirror, or a mirror site near you.

When you first load the Rcmdr package with the command library('Rcmdr'), it will offer to download and install missingdependencies; allow it to do so. If you installed R in Program Files, you may prefer to run R with adminstratorprivileges to install packages: Right click the R icon and select'Run as administrator.' Otherwise, packages will be installed in a package library particular to your user account rather than the main R package library; that should work OK too. I suggest that you install R into a differentdirectory, such as C:R, to avoid this issue.

On Windows, the Rcmdr package works best with the 'single-document 'R interface (SDI). Under the default 'multiple-document interface' (MDI), R Commander dialog boxes may not stay on top of the main R window. In the Startup options screen of the R installer, select Yes (customized startup). Then select the SDI (single-document interface) in preference to the default MDI (multiple-document interface); feel free to make other changes, but you may take all the remaining defaults.

If you install R with the standard MDI, to enable the SDI you can make a copy of the R desktop icon (right-click on the icon,drag it to a different location on the desktop, select Copy Here fromthe context menu). Right-click the new icon and select Properties. Add--sdi (preceded by a space) to the Targetfield on the Shortcut tab of the Properties dialog box. The fieldshould read something like'C:Program FilesRR-x.y.zbinRgui.exe'--sdi, where x.y.z specifies the version of R you installed. If you wish, change the name of the icon on the Generaltab (e.g., to R x.y.z SDI). Click OK. Alternatively, you canyou can edit the Rconsole file in R's etc subdirectory to select the SDI.

Linux/Unix Installation

Linux/Unix systems typically have all of the software requiredfor building packages already installed. The easiest way to install the Rcmdr package is to run R as root andissue the command install.packages('Rcmdr') at the R prompt. R will ask you to select a CRAN mirror; pick the first, '0-Cloud' mirror, or a mirror site near you.

On Ubutu systems, in particular, the following procedure should work (slightly modified from a suggestion by Ista Zahn):

  1. Add the R repository to Ubuntu (see http://cran.r-project.org/bin/linux/ubuntu/).
  2. Install base R and the R dev package: sudo apt-get installr-base r-base-dev
  3. Start R from the Ubuntu command line as root so you can installpackages system-wide: sudo R
  4. From the R command prompt, install Rcmdr: install.packages('Rcmdr'). R will ask you to select a CRAN mirror; pick the first, '0-Cloud' mirror, or a mirror site near you.
It is also possible to install R and R packages from the Ubuntu package respository but these are almost always out of date.
When you first load the Rcmdr package with the command library(Rcmdr), it will offer to download and install missingdependencies; allow it to do so.

macOS Installation

These instructions are for R version 3.6.1 or later; if you're using an earlier version of R, I suggest that you upgrade (in fact, it's generally a good idea to upgrade to the current version of R), or, failing that, consult the special macOS installation notes for the R Commander under older versions of R. R 3.6.1only supports macOS version 10.11 (El Capitan) or higher. Please read these instructions carefully, as they are a little complicated.
Commander
Note that if and when you upgrade macOS, you will have to reinstall XQuartz even if you installed it previously.
install.packages('Rcmdr')
Rwill ask you to select a CRAN mirror; pick the first, '0-Cloud' mirror, or a mirror site near you.

macOS Trouble-shooting

As part of the installation process, XQuartz builds a font cache. Occasionally, the font cache isn't built on installation, and instead the cache is built when the R Commander (and hence XQuartz) is first used. This process can be time-consuming and may initially slow down the performance of the R Commander (with, e.g., dialog boxes taking a long time to display); if this problem occurs, please be patient -- the problem should resolve itself after the font cache is built.
If you are using macOS 10.9 ('Mavericks') or later and the R Commander becomes slow or unresponsive during a session, you can run R and the R Commander in a terminal window on your Mac rather than from R.app or prevent your computer from 'napping' while R.app is running. See 'Suppressing app nap' in the installation notes above.
Occasionally, the Rcmdr package will fail to load properly in macOS. When this problem occurs, the cause is almost always the failure of the tcltk package to load --The Rcmdr package depends on the tcltk package. You can confirm this diagnosis by trying to load the tcltk package directly, in a fresh R session, issuing the command library(tcltk)at the R command prompt.

How To Download R Commander For Mac Windows 7

You can verify the source of this problem by issuing the following command at the R command prompt:
system('ls -ld /usr/local /usr/local/lib /usr/local/lib/libtcl*')

Download R On Mac

If there is a file-permissions problem, you should see something like
ls: /usr/local/lib: Permission denied
ls: /usr/local/lib/libtcl*: Permission denied
drwx------ 8 root wheel 272 Sep 24 10:21 /usr/local
Having confirmed the problem, you can change the file permissions in /usr/local by opening a terminal window on your Mac (Terminal.app is in the Applications Utilities folder), and entering the following command at the $ prompt in the terminal window:
The operating system will ask you to supply your password to execute this command.

Installing Optional Pandoc and LaTeX Software

Installing R and the Rcmdr package is sufficient for creating HTML (web page) reports via the R Markdown document that the R Commander builds for each session, but if you prefer to create editable Word or Open Office documents or PDF files for reports, you will have additionally to install Pandoc and LaTeX (the latter, in conjunction with Pandoc, for PDF reports). The most convenient way to do this is via the R Commander Tools > Install auxiliary software menu (which appears only if Pandoc or LaTeX is absent).
Last modified: 2020-04-24 by John Fox <jfoxAT mcmaster.ca>.

To Install R

  1. Open an internet browser and go to www.r-project.org.
  2. Click the 'download R' link in the middle of the page under 'Getting Started.'
  3. Select a CRAN location (a mirror site) and click the corresponding link.
  4. Click on the 'Download R for (Mac) OS X' link at the top of the page.
  5. Click on the file containing the latest version of R under 'Files.'
  6. Save the .pkg file, double-click it to open, and follow the installation instructions.
  7. Now that R is installed, you need to download and install RStudio.

To Install RStudio

  1. Go to www.rstudio.com and click on the 'Download RStudio' button.
  2. Click on 'Download RStudio Desktop.'
  3. Click on the version recommended for your system, or the latest Mac version, save the .dmg file on your computer, double-click it to open, and then drag and drop it to your applications folder.

Install R For Mac

To Install the SDSFoundations Package

  1. Download SDSFoundations to your desktop (make sure it has the '.tgz' extension).
  2. Open RStudio.
  3. Click on the Packages tab in the bottom right window.
  4. Click 'Install.'
  5. Select install from 'Package Archive File.'
  6. Select the SDSFoundations package file from your desktop.
  7. Click install. You are done! You can now delete the SDSpackage file from your desktop.

To Install R:

  1. Open an internet browser and go to www.r-project.org.
  2. Click the 'download R' link in the middle of the page under 'Getting Started.'
  3. Select a CRAN location (a mirror site) and click the corresponding link.
  4. Click on the 'Download R for Windows' link at the top of the page.
  5. Click on the 'install R for the first time' link at the top of the page.
  6. Click 'Download R for Windows' and save the executable file somewhere on your computer. Run the .exe file and follow the installation instructions.
  7. Now that R is installed, you need to download and install RStudio.

To Install RStudio

  1. Go to www.rstudio.com and click on the 'Download RStudio' button.
  2. Click on 'Download RStudio Desktop.'
  3. Click on the version recommended for your system, or the latest Windows version, and save the executable file. Run the .exe file and follow the installation instructions.

To Install the SDSFoundations Package

How To Download R Commander For Mac Windows 10

  1. Download SDSFoundationsto your desktop (make sure it has the '.zip' extension).
  2. Open RStudio.
  3. Click on the Packages tab in the bottom right window.
  4. Click 'Install.'
  5. Select install from 'Package Archive File.'
  6. Select the SDSFoundations package file from your desktop.
  7. Click install. You are done! You can now delete the SDSpackage file from your desktop.