Install the R runtime

Visit the CRAN homepage. There you will find download links for Linux, Mac OSX, and Windows. Download and run the installer for your operating system.

Install the RStudio IDE

RStudio is a popular cross-platform integrated development environment (IDE) for programming in R (and also supports other languages like Python, JavaScript, and Markdown). Using RStudio will make writing your code solutions and running tests easier.

Download and install the current stable version of RStudio. Or, alternatively, get the preview version of an upcoming release.

Install the R packages for running tests

The test runner for the specs is the testthat library from Hadley Wickham, which is a popular choice for R package authors.

To install this library, type the following in your RStudio console (or wherever you are using R).

1
install.packages("testthat")

While it is unlikely that you will need to install packages to solve the exercism problems, you may want to bring in a general-purpose utility packages like magrittr that suit your programming style. To install and load a package like magrittr:

1
2
install.packages("magrittr")
library(magrittr)

Help us explain this better! File a GitHub issue at https://github.com/exercism/r/issues if you have suggestions, or submit a patch with improvements to the https://github.com/exercism/r/blob/master/docs/INSTALLATION.md file.