Home
Home Blogs k4tz's blog
    • Blog
    • Clinic
    • Contact
    • Download
    • Login
    • Sitemap

Poll

Best of Ubuntu:

Archives

November 2008
SunMonTueWedThuFriSat
1
2345678
9101112131415
16171819202122
23242526272829
30

LXer -- Linux and Open Source News

  • Local hero: Stefan Lesicnik on Linux and Ubuntu
  • Reliable Linux netbooks for Black Friday
  • S3 Announces New GPU, Magical Linux Driver
  • Anonymous Proxy Using Squid 3 On CentOS 5.x
  • 5 Ways To Beat The IT Budget Blues
more

Linux Today

  • Setting Up Master-Master Replication On Four Nodes With MySQL 5 On Debian Etch
  • Plain English Explanation Of An Awk Statement For Linux Or Unix
  • Can't Print in Evince, GEdit, Claws-Mail
  • Kubuntu Moves Forward: You Can't Please Everyone, All the Time
  • Editor's Note: Linux Should Copy Amiga
more

Linux Insider

  • No Love, but Plenty of Like, for the G1
  • Mozilla Cautions Against Experimental Firefox Plug-Ins
  • By the People: Citizen Involvement the Open Source Way
  • The Rocky Legal Landscape of Virtual Worlds, Part 2: Patents
  • The Linux Licensing Labyrinth
more

Install SPSS and JGR in 8.04 Hardy Heron

Submitted by k4tz on Wed, 08/20/2008 - 14:52
  • Blog
  • Java
  • Ubuntu

This guide is intended to help users install and configure "R", a great, free alternative to SPSS. The instructions that I outline here are tailored to Ubuntu 8.04 (Hardy Heron), but can be alternated to fit any Linux distribution. I also have these instructions available on my blog located here.

What is "R"?
This is right from the R homepage:

R is a language and environment for statistical computing and graphics. It is a <a href="http://www.gnu.org/" target="_top">GNU project</a> which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&amp;T, now Lucent Technologies) by John Chambers and colleagues. R can be considered as a different implementation of S. There are some important differences, but much code written for S runs unaltered under R.

R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, ...) and graphical techniques, and is highly extensible. The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity.

What is JGR?
Fortunately or unfortunately, R is based on Command Line Interface (CLI). This is where JGR comes into play. JGR is a Graphical User Interface (GUI) for the R program. This is from the JGR homepage:

[i]JGR (speak 'Jaguar') is a universal and unified Graphical User Interface for R (it actually abbreviates Java Gui for R). JGR was introduced at the useR! meeting in 2004 and there is an introductory article in the Statistical Computing and Graphics Newsletter Vol 16 nr 2 p9-12

Installation:
We begin by simply installing R, Java, and all dependencies in one command:
[In Terminal]

Code:
sudo apt-get install -y r-base-dev r-recommended sun-java6-jdk

When everything is finished downloading and is about to install, you will be prompted to accept the End User License Agreement (EULA) from Sun Java:

Check the "Do you agree with the DLJ license terms?" and hit "Forward". Allow the installer to finish before continuing.

Enable support for Java in R:
[In Terminal]

Code:
sudo update-java-alternatives -s java-6-sun

[In Terminal]

Code:
sudo R CMD javareconf

Now, installing JGR:
[In Terminal]

Code:
sudo R

[In R]

Code:
install.packages('JGR')

After entering the above command, a prompt to select the closest mirror will appear:

Select the closest mirror to you and continue by running this command within R:
[In R]

Code:
library(JGR)

Running it:

Run JGR from inside R:
[In R]

Code:
JGR()

Run JGR from the terminal:
[In Terminal]

Code:
/usr/local/lib/R/site-library/JGR/scripts/run

You should then be pleasantly greeted with the JGR interface:

Thank you for using my tutorial. If you thought this was useful, you may want to consider subscribing to my Linux RSS Feed to get updates for more Linux tips and tricks. Don't forget to comment on my blog as well!

Basic Troubleshooting:
This section will be expanded upon as I receive input from the comments below.

If you get an error message while trying to load the JGR library (or at the end of the "install.packages('JGR') command that looks like, or contains the following:
"installation of package 'maps' had non-zero exit status"
"installation of package 'CarbonEL' had non-zero exit status"
"installation of package 'rJava' had non-zero exit status"
"installation of package 'JavaGD' had non-zero exit status"
"installation of package 'mapproj' had non-zero exit status"
"installation of package 'iplots' had non-zero exit status in"

Then you will need to make sure that (1) you in fact have the package sun-java6-jdk installed, and (2) you have also run the two commands in the "Enable Java in R" section of this tutorial.

Sources: JGR Installation Guide for Feisty

Source: http://ubuntuforums.org/showthread.php?t=770899

  • k4tz's blog
  • Add new comment

Recent blog posts

  • How to check which IP's a particular program is connected to
  • Compiling Audacity from source to work with JACK
  • Quickly change an encrypted volume's password
  • Play RealMedia on Ubuntu 8.10
  • JDownloader - error java version
  • Problems with Nvidia drivers: video run slow
  • Realtek ALC861 microfone in Ubuntu trouble
  • Hide terminal which linux keylogger running
  • Firefox for small screens (EEE, Wind, 4211, Aspire One etc)
  • Update to openoffice 3 in Ubuntu 8.10 Intrepid
more

Linux World

  • More Milestones in Linux Kernel Development History
  • Classifying a Linux Knowledge Base
  • Case stories of good and bad community interaction
  • Canonical launches U.S.-based shop.ubuntu.com in time for holiday season
  • USN-674-1: HPLIP vulnerabilities
  • USN-673-1: libxml2 vulnerabilities
  • Set up Sound Juicer to rip from CD as VBR mp3s
  • USN-672-1: ClamAV vulnerability
  • USN-671-1: MySQL vulnerabilities
  • USN-667-1 Firefox and xulrunner vulnerabilities
Archive XML feed
All contents copyright © 2008, Dhuha Net. All rights reserved
Ubuntudoctor® is a member of the Dhuha Network. Privacy Policy
RoopleTheme