R AnalyticFlow Installation Guide

Version 2.0.1

Jan 9, 2013


Table of Contents

Windows
System Requirements
Download
Install R
Install R AnalyticFlow
Launch R AnalyticFlow
Linux
System Requirements
Download
Install Java
Install R
R configuration
Install R add-on packages
Run R AnalyticFlow
Troubleshooting
Mac OS X
System Requirements
Download
Install Java
Install R
Install R add-on packages
Run R AnalyticFlow

Windows

This document explains how to install R AnalyticFlow on Windows. Follow this instruction to install the software properly.

Note

All the installation processes should be done with administrator authority.

System Requirements

  • OS: Windows 7 (recommended), XP SP3 or Vista

  • R (from 2.12.0 to 2.15.x)

Download

Installer program for windows platforms can be obtained from R AnalyticFlow website .

Install R

R is required for R AnalyticFlow. To obtain R, visit CRAN (The Comprehensive R Archive Network) mirror near you.

Install R AnalyticFlow

Launch R AnalyticFlow installer and follow the instruction.

In the case you encounter some error or the program does not run, uninstall all the software installed here and try re-install in the above order with administrator authority.

Launch R AnalyticFlow

After installation a desktop icon will be created. Double-click the icon to launch R AnalyticFlow.

You can also launch R AnalyticFlow by double-clicking an R AnalyticFlow document (extension .rflow) file icon , or you can go through "Start" > "All Programs" > "R AnalyticFlow 2.0" and click on "R AnalyticFlow".

Linux

This document explains how to install R AnalyticFlow on Linux. Follow this instruction to install the software properly.

Note

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.

System Requirements

  • Java SE Development Kit (Version 6 or higher)

  • R-2.12.0 or higher

  • R add-on packages. rJava is required on launching.

    Other required packages (codetools, rJava) can be installed after start-up.

As of December 2012, a quick validation has been done with the following environments. Descriptions in this document are based on them.

  • CentOS 6.3 + OpenJDK 1.7.0_09

  • Ubuntu 12.04 + OpenJDK 1.7.0_03

Note

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

Download tar.gz archive from R AnalyticFlow website download page.

Install Java

Install OpenJDK or Oracle Java SE . See the above links for details.

Install R

R-2.12.0 or higher is required for R AnalyticFlow. To obtain R, visit CRAN (The Comprehensive R Archive Network) mirror near you.

Ubuntu (or other Debian-based distributions)

The following command is available (sources.list may need to be edited).

sudo aptitude install r-base

Fedora/CentOS

The following command is available. On CentOS you should add EPEL repository beforehand.

sudo yum install r-base

R configuration

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

Install R add-on packages

Run R from console:

sudo R

Execute the following from the R console:

install.packages("rJava")

Run R AnalyticFlow

First extract the tar.gz archive:

tar xzvf RAnalyticFlow_Linux_2.0.1.tar.gz

Then a directory named "RAnalyticFlow_2.0.1" is created. Execute the following command in the directory to run R AnalyticFlow.

./rflow &

Finally make a symbolic link to a directory in the path. For example:

ln -s INSTALL_DIR/rflow /usr/local/bin/rflow

Please replace INSTALL_DIR with an actual installation directory. Now you can launch R AnalyticFlow by the following command:

rflow

To open an R AnalyticFlow document (.rflow) on start-up, specify a file name as follows:

rflow analysis.rflow &

Then the file "analysis.rflow" is opened.

Troubleshooting

Character corruption occurs in the R console

Set environment variable LANG properly with UTF-8 encoding. To use Japanese font, for example, add the following script to rflow file:

export LANG=ja_JP.UTF-8

In the same way, use zh_CN.UTF-8 to use simplified Chinese, etc.

Some characters are displayed as ◻ in the R console

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.

Mac OS X

This document explains how to install R AnalyticFlow on Mac OS X. Follow this instruction to install the software properly.

Note

All the installation processes should be done with administrator authority.

System Requirements

  • Java SE Runtime Environment Version 6 or higher

  • R-2.12.0 or higher

  • R add-on packages. rJava is required on launching.

    Other required packages (codetools, rJava) can be installed after start-up.

Note

As of January 2013, a quick validation has been done with the following environments. Descriptions in this document are based on them.

  • Mac OS X 10.5 (Leopard) + Apple Java 1.6.0_22

  • Mac OS X 10.6 (Snow Leopard) + Apple Java 1.6.0_37

  • Mac OS X 10.7 (Lion) + Oracle Java 1.7.0_10

  • Mac OS X 10.8 (Mountain Lion) + Oracle Java 1.7.0_10

Download

Download zip file from R AnalyticFlow website download page.

Install Java

As of Dec 2012, Java for Max OS X is available from Oracle or Apple's website.

Oracle Java

Java SE 7 is avaiblable from Oracle's website.

Apple Java

Install the latest release of Apple Java SE 6. See the following sites as references.

If your system already has Oracle Java installed, you have to uninstall it in advance. See Oracle's website for details.

If Apple Java SE 5 is already installed, you should set Java SE 6 as default. Configure Java with the Java Preferences utility (under /Applications/Utilities/).

Install R

R-2.12.0 or higher is required for R AnalyticFlow. To obtain R, visit CRAN (The Comprehensive R Archive Network) mirror near you.

Install R add-on packages

Execute the following from the R console:

install.packages("rJava")

Run R AnalyticFlow

Double-click on the zip file to expand it. Then just drag and drop the application icon to an appropriate folder (e.g. Applications) to complete the installation.

Double-click on application icon to execute the program.