This document explains how to install R AnalyticFlow on Linux. Follow this instruction to install the software properly.
All the installation processes should be done with administrator authority.
This document supposes that you are in sodoers;
you can use sudo
command to behave as a super user.
Java SE Development Kit (Version 6)
R-2.5.1 or higher
R add-on packages (codetools and rJava)
As of November 2009, a quick validation has been done with the following distributions. Descriptions in this document are based on them.
Fedora 8
Ubuntu 7.10
This document is witten to be useful; however, some parts might be inapplicable in your environment. We appreciate if you can share information on adjustments needed for particular systems.
Download tar.gz archive from R AnalyticFlow website download page.
Sun Microsystems Java SE Development Kit is required (Version 6). JDK is available from Sun Microsystems website . Linux installation process is explained in this installation notes by Sun Microsystems.
R-2.5.1 or higher is required for R AnalyticFlow. To obtain R, visit CRAN (The Comprehensive R Archive Network) mirror near you.
The following command is available (sources.list may need to be edited).
sudo aptitude install r-base
Execute the following command from console:
sudo R CMD javareconf
If it doesn't work well, JAVA_HOME may need to be specified. See the following example:
sudo R CMD javareconf JAVA_HOME=/usr/java/default
Run R from console:
sudo R
Execute the following from the R console:
install.packages(c("codetools", "rJava"))
First extract the tar.gz archive:
tar xzvf RAnalyticFlow_Linux_1.0.0.tar.gz
Then a directory named "RAnalyticFlow_1.0.0" is created. Execute the following command in the directory to run R AnalyticFlow. If the installation is successful, two windows will be appeared after initial configurations.
./rflow &
Finally make a symbolic link to a directory in the path. For example:
ln -s rflow /usr/local/bin/rflow
Set environment variable LANG properly with UTF-8 encoding. To use Japanese font, for example, type as follows:
export LANG=ja_JP.UTF-8
In the same way, use zh_CN.UTF-8 to use simplified Chinese, etc.
Fonts might not be installed properly. The following are examples to use Japanese sazanami font. In Debian, type
sudo aptitude install ttf-sazanami-gothic sudo aptitude install ttf-sazanami-mincho
to install sazanami font.
In Fedora 8,
mkdir /usr/java/default/jre/lib/fonts/fallback cd /usr/java/default/jre/lib/fonts/fallback ln -s /etc/X11/fontpath.d/sazanami-fonts-gothic/sazanami-gothic-ttf
to set JRE to use sazanami font.