R

Rlogo

Contents

            1. Description

            2. Requirement

            3. How to run job R using HPC

            4. Contact Us

Description:

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.
Website:https://www.r-project.org/

Requirement

Step 1: Please register to UTM HPC Account
Step 2: HPC admin (hpc@utm.my) will sent HPC account to your email.

How to run job R using HPC

Submit a R job

In the example below the input files rtutor-pt1-c01.R will be run after submit a job using PBS script, pbs-script. For example, create a submission script file called pbs-script that contains the lines below. This example requests one node and four processor cores.

#!/bin/sh

#PBS -N R_test
#PBS -l nodes=1:ppn=4

INP_FILE=rtutor-pt1-c01.R
EXEC=R
PROGRAM="$VO_ACADEMICGRID_SW_DIR/R/bin/$EXEC"

cd $PBS_O_WORKDIR

export PATH=$MPI_OPENMPI_PATH/bin:$PATH
export LD_LIBRARY_PATH=$MPI_OPENMPI_PATH/lib:$VO_ACADEMICGRID_SW_DIR/R/lib64/R/lib:$LD_LIBRARY_PATH

cd $HOME/R_program/r-tutorial-src

$PROGRAM --vanilla < $INP_FILE > results

Transfering Files & Submitting Job

Then, upload the submission script above and your input file to the HPC using WinSCP tool. To submit a job, please using a Putty tool and run the command below. How to access the HPC server, please go to our New User Guide page.
 

Submit the R submission job to the queue:

Users can submit the job using two options as below. The pbs-script name below is the name of your submission script.

qsub -q bigmem pbs-script
OR
qsub -q hpc pbs-script
Please note that queue for hpc above have 8 core’s for each cluster/node so if you are using this cluster please make sure in the script, you state “ppn=8″ to make sure your job can run.

Contact Us

Any problem about HPC, please email to hpc@utm.my or our facebook (R CONSOLE)