Difference between revisions of "Website:Visualization with ggplot2 of the R-Project"

From WormBaseWiki
Jump to navigationJump to search
(Added ggplot2 installation instructions.)
(Updated how to start Rserve on dev/staging.)
Line 34: Line 34:
== Starting the Rserve Daemon ==
== Starting the Rserve Daemon ==
Applicable to <code>dev.wormbase.org</code> and <code>staging.wormbase.org</code> (same machine).
R CMD Rserve --no-save
sudo -u jenkins R_HOME=/usr/lib/R /usr/lib/R/bin/Rserve --no-save

Revision as of 18:57, 6 November 2013

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 -u jenkins R_HOME=/usr/lib/R /usr/lib/R/bin/Rserve --no-save