-
Notifications
You must be signed in to change notification settings - Fork 8
Install on Linux
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):
- Install R: any version should do, but if the latest isn't working you'll need to download/install via the
tar.gz
archives. - Install dependencies: GTK and the XOrg window system.
- 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()
The dependencies you need vary depending on the flavour of Linux you are using, as well as the version of that.
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
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
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.
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")
This wiki can only be modified by authorised users actively involved in the project. If you would like to contribute (such as installation instructions for an OS), just create an issue with the label "Wiki Suggestion" and write up in full Markdown. We'll check it and if we're happy we'll add it. And you'll be cited as the author.