Skip to content
Lindsay Clark edited this page Nov 1, 2015 · 1 revision

Obtaining R

If you don't already have R, download it from CRAN and install it.

If you have not used R before, please take a day or so to learn the basics of how to use it before you try to use polysat. Many free resources are available online for learning R, for example the contributed documentation on CRAN and the official Introduction to R.

Installing polysat from CRAN

The easiest way to install polysat is directly from CRAN. This is the installation method for most users.

At the prompt in the R console, type:

install.packages("polysat")
library(polysat)

If you plan to use the Bruvo.distance function, you will also need the package "combinat".

Installing polysat from GitHub

The development version of polysat is available on GitHub. You will not need the development version unless there is some very recent change to polysat that is important for your analysis. At the top of the NEWS file you will see a list of recent changes.

If you are running Windows you will need to have Rtools installed.

Then (for any operating system) at the R console type:

install.packages("devtools")
library(devtools)
install_github("polysat", username = "lvclark")
library(polysat)