Website:Visualization with ggplot2 of the R-Project

From WormBaseWiki
Jump to: navigation, search

Installation Instructions

# Installation instructions based on Debian 7.1.

# Installs R. Version 2.14 or newer required.
sudo apt-get install r-base

# Installs Ruby and Ruby gems. Version 1.9 or newer required.
sudo apt-get install ruby ruby-dev rubygems

# ggplot2: plotting of many different scientific graphs using a
#          single unified interface. Drawback: the instructions here
#          require user input.
sudo R
# ...then type
#     install.packages("ggplot2")
# ...and exit R after the installation has completed.

# Defaults: lets you tinker with R default settings.
wget http://cran.r-project.org/src/contrib/Defaults_1.1-1.tar.gz
sudo R CMD INSTALL Defaults_1.1-1.tar.gz

# Rserve: R server that can be accessed via Ruby, Python, but not Perl.
wget http://www.rforge.net/Rserve/snapshot/Rserve_1.8-0.tar.gz
sudo R CMD INSTALL Rserve_1.8-0.tar.gz

# Install Ruby gem that provides programmatic access to Rserve.
sudo gem install rserve-client

# Install Perl IPC::Run3 module, which is used to call the wrapper "script/rserve_client.rb".
sudo cpan install IPC::Run3

Starting the Rserve Daemon

Applicable to dev.wormbase.org and staging.wormbase.org (same machine).

sudo /etc/init.d/rserve-startup

This is a wrapper for:

sudo -u jenkins R_HOME=/usr/lib/R /usr/lib/R/bin/Rserve --no-save