Difference between revisions of "Website:Visualization with ggplot2 of the R-Project"
From WormBaseWiki
Jump to navigationJump to search (Installation instructions.) |
|||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | == Installation Instructions == |
+ | |||
+ | <pre> | ||
# Installation instructions based on Debian 7.1. | # Installation instructions based on Debian 7.1. | ||
Line 7: | Line 9: | ||
# Installs Ruby and Ruby gems. Version 1.9 or newer required. | # Installs Ruby and Ruby gems. Version 1.9 or newer required. | ||
sudo apt-get install ruby ruby-dev rubygems | 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. | # Rserve: R server that can be accessed via Ruby, Python, but not Perl. | ||
Line 17: | Line 31: | ||
# Install Perl IPC::Run3 module, which is used to call the wrapper "script/rserve_client.rb". | # Install Perl IPC::Run3 module, which is used to call the wrapper "script/rserve_client.rb". | ||
sudo cpan install IPC::Run3 | sudo cpan install IPC::Run3 | ||
− | </ | + | </pre> |
+ | |||
+ | == Starting the Rserve Daemon == | ||
+ | |||
+ | Applicable to <code>dev.wormbase.org</code> and <code>staging.wormbase.org</code> (same machine). | ||
+ | |||
+ | <pre> | ||
+ | sudo /etc/init.d/rserve-startup | ||
+ | </pre> | ||
+ | |||
+ | This is a wrapper for: | ||
+ | |||
+ | <pre> | ||
+ | sudo -u jenkins R_HOME=/usr/lib/R /usr/lib/R/bin/Rserve --no-save | ||
+ | </pre> | ||
+ | |||
+ | [[Category:Main Website (Web Dev)]] |
Latest revision as of 14:49, 19 June 2014
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