Tags:
create new tag
,
view all tags
%TOC% ---++ About this wiki The following best practices document aims to provide some hints and examples on how to install and configure [[http://www.r-project.org/][R]] on a grid based infrastructure. ---++ About R * R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS. * To download R, please choose your preferred [[http://cran.r-project.org/mirrors.html][CRAN mirror]]. * If you have questions about R like how to download and install the software, or what the license terms are, please read the [[http://cran.r-project.org/faqs.html][FAQs]]. ---++ Source Pack The following source packs are available for download. | *Pack* | *File* | | rpm | [[http://download.fedora.redhat.com/pub/epel/5/x86_64/R-2.14.1-1.el5.x86_64.rpm][R-2.14.1-1.el5.x86_64.rpm]] | | rpm | [[http://download.fedora.redhat.com/pub/epel/5/x86_64/libRmath-devel-2.14.1-1.el5.x86_64.rpm][libRmath-devel-2.14.1-1.el5.x86_64.rpm]] | | rpm | [[http://download.fedora.redhat.com/pub/epel/5/x86_64/R-devel-2.14.1-1.el5.x86_64.rpm][R-devel-2.14.1-1.el5.x86_64.rpm]] | | rpm | [[http://download.fedora.redhat.com/pub/epel/5/x86_64/libRmath-2.14.1-1.el5.x86_64.rpm][libRmath-2.14.1-1.el5.x86_64.rpm]] | | rpm | [[http://download.fedora.redhat.com/pub/epel/5/x86_64/R-core-2.14.1-1.el5.x86_64.rpm][R-core-2.14.1-1.el5.x86_64.rpm]] | | rpm | [[ftp://mirror.switch.ch/pool/1/mirror/scientificlinux/5rolling/i386/contrib/xscreensaver/xdg-utils-1.0.2-2.el5.noarch.rpm][xdg-utils-1.0.2-2.el5.noarch.rpm]] | ---++ System requirements The instructions from this best practice have been tested on a: * OS: Scientific Linux SL release 5.4 (Boron) * Compiler: any * Arch: x86_64 Before to install R, please install from repo the following list of packages: <PRE> $ yum install -y tk-devel $ yum install -y tetex-latex $ yum install -y tcl-devel $ yum install -y pcre-devel $ yum install -y bzip2-devel $ yum install -y texinfo-tex </PRE> ---++ Create and deploy the SW tar in grid By using the rpm2cpio command extract the rpm files and create the SW tar-ball to be deployed <PRE> rpm2cpio *.rpm | cpio -idmv $ tree R-2.14.1-1.el5.x86_64 -L 3 R-2.14.1-1.el5.x86_64 |-- etc | |-- ld.so.conf.d | | `-- R-x86_64.conf | `-- rpm | `-- macros.R `-- usr |-- bin | |-- R | |-- Rscript | |-- xdg-desktop-icon | |-- xdg-desktop-menu | |-- xdg-email | |-- xdg-icon-resource | |-- xdg-mime | |-- xdg-open | `-- xdg-screensaver |-- include | |-- R | `-- Rmath.h |-- lib | `-- rpm |-- lib64 | |-- R | |-- libRmath.so | `-- pkgconfig `-- share |-- R |-- doc |-- info |-- man `-- texmf 18 directories, 13 files </PRE> ---++ Testing the R Project for Statistical Computing in grid This is an example of JDL file that can be used for testing: <PRE> $ cat R.jdl [ Executable = "/bin/sh"; Arguments = "start_R_macro.sh macro.r"; StdOutput = "std.out"; StdError = "std.err"; InputSandbox = {"start_R_macro.sh","macro.r"}; OutputSandbox = {"std.out", "std.err", "out.ps"}; Requirements = Member("VO-gridit-prod-R-2.14.1-1-SL5-x86_64-gccany", other.GlueHostApplicationSoftwareRunTimeEnvironment); ] </PRE> This is the bash script and the macro sent in InputSandbox with the JDL file: <PRE> $ cat start_R_macro.sh #!/bin/sh ${VO_GRIDIT_SW_DIR}/R-2.14.1-1.el5.x86_64/usr/bin/R --vanilla < $1 > std.out $ cat macro.r postscript("out.ps") x<-c(1,2,3,4,5,6,7,8) y<-c(1,2,3,4,5,6,7,8) plot(x,y,xlim=range(0:10),ylim=range(0:10),type='b',main="X vs Y") text(4,6,label="Slope=1") title("X vs Y") lines(x,y) dev.off() q() </PRE> ---++ References [[http://www.r-project.org/][The R Project for Statistical Computing]] [[http://cran.r-project.org/manuals.html][Manual]] -- Main.GiuseppeLaRocca - 2012-02-07
Attachments
Attachments
Topic attachments
I
Attachment
Action
Size
Date
Who
Comment
ps
out.ps
manage
5.0 K
2012-02-07 - 09:58
GiuseppeLaRocca
pdf
out.pdf
manage
7.4 K
2012-02-07 - 09:57
GiuseppeLaRocca
E
dit
|
A
ttach
|
PDF
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
M
ore topic actions
Topic revision: r1 - 2012-02-07
-
GiuseppeLaRocca
Home
Site map
CEMon web
CREAM web
Cloud web
Cyclops web
DGAS web
EgeeJra1It web
Gows web
GridOversight web
IGIPortal web
IGIRelease web
MPI web
Main web
MarcheCloud web
MarcheCloudPilotaCNAF web
Middleware web
Operations web
Sandbox web
Security web
SiteAdminCorner web
TWiki web
Training web
UserSupport web
VOMS web
WMS web
WMSMonitor web
WeNMR web
UserSupport Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback