Installing R and JAGS on Ubuntu OS
I recently tried installing R and JAGS on my machine running
Ubuntu. I wanted to test my |
I already had R and JAGS 3 installed, together with
I was running the Long Term Support (LTS) version of Ubuntu, Trusty, so decided to upgrade to the latest, Wily, before going further, but I found that crashed regularly, so reinstalled Trusty. At this point I had a clean OS install.
The simplest way to install R, JAGS and
If you already have JAGS 3 installed
I actually tried to install JAGS 4 on the machine before
reinstalling Ubuntu. On Windows, JAGS 4 is installed in a
separate folder to JAGS 3, so you can happily have both on your
machine and both old and new versions of
The apparent reason for this was components of JAGS 3 which had not been removed when JAGS 4 was installed, as explained by Martyn Plummer here. So I uninstalled and purged, and then checked for remaining files:
I still had stuff in /usr/local/lib, so navigated to there and manually deleted the JAGS directory and all the jagslib* files (with sudo rm -r as they are read-only). Then reinstalled JAGS 4 from Michael Rutter's PPA and it all worked.
I downloaded the latest version of RStudio from their download page and opened it with Ubuntu Software Center. On Trusty, that worked out of the box, but not on Wily. I tried to open it in the Terminal, and got an error message about libgstreamer. This needs to installed separately as described here. I've now upgraded to Xenial, and given up trying to install RStudio. I've installed Emacs + Ess, but that's a nightmare. I think I hate Ubuntu even more than I hate Macs.
| Updated 26 May 2017 by Mike Meredith|