Username: sueveges
Cluster: baobab
Module: R
Job: 12811948
Starting to work with R on baobab, I tried the hello.R / launchR.sh scripts. Removing the version numbers from the modules loaded (so that I get the latest version of everything) the script I tried to run is the following:
#!/bin/bash
#SBATCH --job-name=testR
#SBATCH --cpus-per-task=1
#SBATCH --time=0:15:0
#SBATCH --partition=debug-cpu
module load GCC OpenMPI R
INFILE=hello.R
OUTFILE=hello.Rout
srun R CMD BATCH $INFILE $OUTFILE
I get two outfiles, the attached slurm-12811948.out and hello.Rout files. R stops with an error (hello.Rout), and slurm terminates with an exit code 1. Same result if I try with a modified R script, just trying to print out exp(1:3) instead of “hello world”.
What am I doing wrong?
Thank you in advance!
Best,
Maria