Skip to content

Install on Linux

Tom Elliott edited this page Sep 2, 2016 · 2 revisions

Firstly, congratulations on using a superior OS! Unfortunately, this also means you are superior to most users. At least, installing iNZight will assume as much. The problem isn't so much with iNZight as it is with its dependencies which means a) its not our fault, and b) there's nothing we can do about it (unfortunately!).

The basic steps required are as follows (more details below):

  1. Install R: any version should do, but if the latest isn't working you'll need to download/install via the tar.gz archives.
  2. Install dependencies: GTK and the XOrg window system.
  3. Install the R package dependencies: there are a bunch of them, and most should be installed automatically.

Install R | System Dependencies | Install | Update

That's about it, then you just launch R and run

library(iNZight)
iNZight()

If you really want to use vit (it probably wont work because the graphics devices on Linux aren't fast enough and you won't see anything resembling a useful animation) then install it and run

library(vit)
iNZightVIT()

Details

The dependencies you need vary depending on the flavour of Linux you are using, as well as the version of that.

Installing R

We're limited by which versions R supports, so use these links to download R:

  • Ubuntu - the most common, and therefore we can probably help
  • Debian - should be almost as simple as Ubuntu
  • Redhat - No documentation (yet) so you'll be on your own
  • SUSE - No documentation (yet) so you'll be on your own

System dependencies

The main packages you need to run iNZight are the XOrg windowing system, and GTK. Getting these again depends on your OS. We have dedicated pages for the main ones. Feel free to send us details about what your setup required.

Ubuntu | Debian | Redhat | SUSE

Installing iNZight

Once you have (or think you have) all of the dependencies sorted, you can go ahead and install iNZight.

install.packages(c("iNZight", "iNZightPlots", "iNZightMR", 
                   "iNZightModules", "iNZightTS", "iNZightRegression"),
                 repos = c("http://r.docker.stat.auckland.ac.nz/R",
                           "http://cran.stat.auckland.ac.nz"))  # or your preferred mirror

This will tell you if you are missing any dependencies: read the error messages and attempt to find "missing dependency Z", Google that dependency, and 9 times out of 10 the first result will contain the necessary apt-get package name (or yum, or whatever you use). Then, it would be super appreciated if you flicked us an email; something along the lines of:

OS: Ubuntu 14.04
Dependency missing: gtk2
Package required: libgtk2.0-dev

so we can add it to the pages above.

Updating iNZight

We try to fix bugs ASAP, and are constantly developing iNZight. So to update, use the general R update function, but set the repository to ours:

update.packages(repos = "http://r.docker.stat.auckland.ac.nz/R")