-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestscript.R
More file actions
31 lines (22 loc) · 807 Bytes
/
testscript.R
File metadata and controls
31 lines (22 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
###### Select resources #####
#PBS -N [Name of Job]
#PBS -l ncpus=[number of cpu's required, most likely 1]
#PBS -l mem=[amount of memory required]
#PBS -l walltime=[how long the job should run for - you may wish to remove this line]
#### Output File #####
#PBS -o $PBS_O_WORKDIR/[output (standard out) file name]
#### Error File #####
#PBS -e $PBS_O_WORKDIR/[input (standard out) file name]
##### Queue #####
#pbs -q workq
##### Mail Options #####
#PBS -m abe
#PBS -M [your email address]
##### Change to current working directory #####
cd $PBS_O_WORKDIR
##### Execute Program #####
R --vanilla < [Your R file].R > [R output file name]
##### Change to current working directory #####
cd $PBS_O_WORKDIR
##### Execute Program #####
R --vanilla < [Your R file].R > [R output file the real file name]